Skip to content

feat(swift-ios): preserve message context and fold large pastes - #11694

Merged
t3dotgg merged 7 commits into
t3code/rebuild-mobile-app-swiftfrom
t3code/swift-parity-composer-context
Sep 14, 2026
Merged

t3dotgg merged 7 commits into
t3code/rebuild-mobile-app-swiftfrom
t3code/swift-parity-composer-context

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Sep 14, 2026

Copy link
Copy Markdown
Member

SwiftUI discarded structured message context and pasted large text into the prompt.

Keep typed context records through history, drafts, queued sends, and attachment uploads. File, skill, review, and terminal context use canonical links. Older servers receive readable context text. Large pastes become text attachments with pasted-text source metadata. Paste as Text keeps deliberate inline pastes and the current selection.

Added focused wire, persistence, and editor tests. Native execution and UI evidence are handled by the main agent in the shared verification pass.

Created with Codex.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Sep 14, 2026
Comment thread apps/swift-ios/Core/T3Client.swift Outdated
Comment thread apps/swift-ios/Features/Review/FeatureReviewView.swift Outdated
@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire — 13.6 KiB — 15.1 KiB ✅
Codex Thread snapshot wire — 7.0 KiB — 7.3 KiB ✅
Codex Live turn WebSocket wire — 6.6 KiB — 7.8 KiB ✅
Codex Live turn WebSocket decoded — 57.1 KiB — 66.4 KiB ✅
Codex Live turn messages — 10 — 21 ✅
Claude Total thread wire — 13.6 KiB — 15.1 KiB ✅
Claude Thread snapshot wire — 7.1 KiB — 7.3 KiB ✅
Claude Live turn WebSocket wire — 6.5 KiB — 7.8 KiB ✅
Claude Live turn WebSocket decoded — 57.8 KiB — 66.4 KiB ✅
Claude Live turn messages — 9 — 21 ✅

Baseline: unavailable · PR result: a8ca3c1 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 113.9 KiB
  • Claude decoded thread snapshot: 114.6 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@macroscopeapp

macroscopeapp Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This PR adds a broad message-context capability across composition, persistence, transport, rendering, terminal/review integrations, and attachment uploads, while also changing large-paste behavior in the existing composer path. The cross-layer runtime and user-facing impact is substantial enough to require human review.

You can add or adjust custom eligibility rules. Learn more.

Comment thread apps/swift-ios/Features/Chat/FeatureComposerView.swift Outdated
Comment thread apps/swift-ios/Features/Chat/FeatureComposerContext.swift Outdated
Comment thread apps/swift-ios/Features/Shared/FeatureToolModels.swift Outdated
Comment thread apps/swift-ios/Features/Shared/FeatureToolModels.swift Outdated
@cursor

cursor Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@t3dotgg
t3dotgg force-pushed the t3code/swift-parity-composer-context branch from 73d1072 to 5250ee9 Compare September 14, 2026 04:55
Comment thread apps/swift-ios/Core/Attachments.swift Outdated
@cursor

cursor Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@t3dotgg
t3dotgg merged commit 04d3039 into t3code/rebuild-mobile-app-swift Sep 14, 2026
24 checks passed
@t3dotgg
t3dotgg deleted the t3code/swift-parity-composer-context branch September 14, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant