Skip to content

feat(swift-ios): preserve context when copying between messages - #11701

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

t3dotgg merged 8 commits into
t3code/rebuild-mobile-app-swiftfrom
t3code/swift-parity-context-clipboard

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Copying context from a SwiftUI draft or message lost the records behind its links. Pasting file context could then point at attachments that belonged to another environment.

Copy now includes the selected records, linked screenshots, and portable MIME/HTML clipboard data. Paste assigns new IDs and imports each file through retained local data or the source environment. It updates the draft only after every import succeeds. Failed or cancelled imports keep the draft and selection.

Added ComposerContextClipboardTests and FeatureContextClipboardTests. The main verification agent ran the full combined native target on 0be3ad6a59: 1,100 passed, 0 failed, 1 skipped. UI evidence remains with the main verification agent.

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/Features/Chat/MarkdownMessageView.swift
Comment thread apps/swift-ios/Features/Shared/FeatureComposerDraftStore.swift Outdated
@t3dotgg
t3dotgg force-pushed the t3code/swift-parity-composer-context branch from 73d1072 to 5250ee9 Compare September 14, 2026 04:55
@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.1 KiB — 7.3 KiB ✅
Codex Live turn WebSocket wire — 6.5 KiB — 7.8 KiB ✅
Codex Live turn WebSocket decoded — 57.0 KiB — 66.4 KiB ✅
Codex Live turn messages — 8 — 21 ✅
Claude Total thread wire — 13.5 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 — 8 — 21 ✅

Baseline: unavailable · PR result: 0be3ad6 · 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 introduces a substantial context-aware clipboard capability with new serialization, asynchronous attachment import, cross-environment asset downloads, persistence interactions, and draft-recovery changes. It also modifies existing composer, copy/paste, upload, and send flows, creating a broad runtime and data-flow surface for human review.

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

@t3dotgg
t3dotgg force-pushed the t3code/swift-parity-context-clipboard branch 2 times, most recently from 1a784a6 to 6eaee8b Compare September 14, 2026 05:00
@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.

Base automatically changed from t3code/swift-parity-composer-context to t3code/rebuild-mobile-app-swift September 14, 2026 05:03
@t3dotgg
t3dotgg force-pushed the t3code/swift-parity-context-clipboard branch from 6eaee8b to 4ed27bc Compare September 14, 2026 05:05
Comment thread apps/swift-ios/Features/Chat/ThreadDetailView.swift
Comment thread apps/swift-ios/Core/ComposerContext.swift
Comment thread apps/swift-ios/Core/ComposerContextClipboard.swift
@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.

Comment thread apps/swift-ios/Features/Workspace/NewThreadView.swift
@t3dotgg
t3dotgg force-pushed the t3code/swift-parity-context-clipboard branch from 7ed114f to c93866d Compare September 14, 2026 05:14
Comment thread apps/swift-ios/Features/Chat/FeatureContextClipboardEdit.swift
Comment thread apps/swift-ios/Features/Workspace/NewThreadView.swift Outdated
@t3dotgg
t3dotgg force-pushed the t3code/swift-parity-context-clipboard branch from 2a6b4bc to 0be3ad6 Compare September 14, 2026 05:26
@t3dotgg
t3dotgg merged commit a132be6 into t3code/rebuild-mobile-app-swift Sep 14, 2026
24 checks passed
@t3dotgg
t3dotgg deleted the t3code/swift-parity-context-clipboard branch September 14, 2026 05:29
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