Repository navigation
fix(native-chat): mirror multi-line launch drafts into the chat composer - #11253
Conversation
seedNativeChatLaunchDraftForAgentTab rejected any text containing a newline,
so every Linear launch ("Linked Linear issue: X\n<url>") and any GitHub launch
with a typed note was invisible in chat. The rejection existed because the send
path pre-cleared the TUI with a single Ctrl+U, which cannot clear a buffer with
embedded newlines.
Orca injects the draft itself, so when the composer still holds exactly what was
injected the buffer already IS the message: the send becomes the submit key
alone — no clear, no paste, nothing that can concatenate, and multi-line submits
as one turn for free. Only the edited case needs real buffer replacement, and
that now clears every line and verifies against the agent's rendered input line
instead of firing blind.
Measured on real PTYs against Claude Code and codex (both agree exactly):
clearing N logical lines costs 2N-1 Ctrl+U. See src/shared/agent-tui-input-clear.ts
for the law, the sequences that do NOT work, and why an upper bound is safe.
Live QA caught the bundled form failing: a multi-line burst prefixed onto the body in the SAME terminal.send reached the agent as LITERAL Ctrl+U characters, so the parked draft survived and the message arrived as draft + 21x \x15 + body. Sending the burst as its own non-submitting write — the shape the image paste has always used — clears as intended. The body write's own single-Ctrl+U prefix is dropped once that dedicated clear ran, for the same reason: a Ctrl+U immediately followed by body text in one write lands as a literal control character and headed the received message. Re-verified live end to end: received prompt is exactly the draft, one turn, zero control characters.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe change adds structured launch-draft metadata and lifecycle tracking, including creation timestamps and seeded-draft readers. Native chat clearing now supports multi-line Ctrl+U bursts, confirmation, deadline handling, and dedicated mobile clear writes. Desktop composer and runtime sends use launch-draft replacement options. Mobile message and image attachment flows clear parked drafts appropriately and forward resolved draft metadata. Tests cover clearing, sequencing, draft adoption, retraction, image sending, and multi-line launch seeding. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
mobile/src/session/use-mobile-native-chat-message-send.ts (1)
104-149: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winAvoid clearing after the image paste.
For image sends,
mobile/src/session/use-mobile-native-chat-image-attachments.tsalready clears the seeded draft before pasting. This branch then clears again inbaseSend, erasing the pasted image before the caption is submitted. Only run this dedicated clear for text-only sends.Proposed fix
- if (seededLaunchDraft) { + if (seededLaunchDraft && !images?.length) {
🧹 Nitpick comments (2)
src/shared/agent-tui-input-clear.ts (1)
1-30: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueCondense implementation-history comments.
Keep the invariant and failure mode near the code; move measurement narratives and rejected alternatives to tests or dedicated documentation.
src/shared/agent-tui-input-clear.ts#L1-L30: reduce this to a short explanation of the2N-1invariant.mobile/src/session/mobile-native-chat-send.ts#L93-L101: retain only the standalone-write requirement and its literal-control-character failure mode.As per coding guidelines, comments must be concise, limited to non-obvious information, and preferably one line.
Source: Coding guidelines
src/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.ts (1)
123-140: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winConsider covering the image path with
confirmCleared.Both image tests omit
confirmCleared, so the image-specific confirm gap (clearConfirmDurationMsadded todurationMs) and the widened-burst-before-image-paste ordering are untested.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 55b43b99-6cf8-4ae2-bd38-6784ae9ed680
📒 Files selected for processing (23)
mobile/app/h/[hostId]/session/[worktreeId].tsxmobile/src/session/mobile-native-chat-image-send.test.tsmobile/src/session/mobile-native-chat-image-send.tsmobile/src/session/mobile-native-chat-send.test.tsmobile/src/session/mobile-native-chat-send.tsmobile/src/session/use-mobile-native-chat-controller.test.tsmobile/src/session/use-mobile-native-chat-controller.tsmobile/src/session/use-mobile-native-chat-drafts.tsmobile/src/session/use-mobile-native-chat-image-attachments.test.tsmobile/src/session/use-mobile-native-chat-image-attachments.tsmobile/src/session/use-mobile-native-chat-launch-draft-seed.tsmobile/src/session/use-mobile-native-chat-message-send.test.tsmobile/src/session/use-mobile-native-chat-message-send.tsmobile/src/session/use-mobile-session-image-attachments.tssrc/renderer/src/components/native-chat/NativeChatComposer.tsxsrc/renderer/src/components/native-chat/native-chat-launch-draft-send.test.tssrc/renderer/src/components/native-chat/native-chat-launch-draft-send.tssrc/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.tssrc/renderer/src/components/native-chat/native-chat-runtime-send.tssrc/renderer/src/lib/agent-launch-prompt-delivery.test.tssrc/renderer/src/lib/agent-launch-prompt-delivery.tssrc/shared/agent-tui-input-clear.test.tssrc/shared/agent-tui-input-clear.ts
| /** Bounds the burst so a pathological draft cannot emit an unbounded write. */ | ||
| export const AGENT_TUI_CLEAR_MAX_LINES = 40 | ||
|
|
||
| /** Widest burst we ever send — the remedy when a clear is not observed to land. */ | ||
| export const AGENT_TUI_CLEAR_INPUT_MAX = buildAgentTuiClearInput(AGENT_TUI_CLEAR_MAX_LINES) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Do not silently under-clear drafts exceeding 40 logical lines.
A 41-line draft receives only the 79 Ctrl+U bytes needed for 40 lines; the desktop fallback repeats that same insufficient maximum, while mobile proceeds after the accepted clear write. This can append the new body to residual seeded text.
src/shared/agent-tui-input-clear.ts#L45-L49: expose overflow/chunked clearing and ensure replacement sends cannot continue after an incomplete clear.src/shared/agent-tui-input-clear.test.ts#L38-L41: add a 41+ logical-line regression case that requires complete clearing or a safe rejected path rather than truncation.
📍 Affects 2 files
src/shared/agent-tui-input-clear.ts#L45-L49(this comment)src/shared/agent-tui-input-clear.test.ts#L38-L41
Greptile SummaryThis PR fixes multi-line launch drafts (Linear issue links, typed notes) being silently dropped by the native-chat composer. The previous single
Confidence Score: 4/5The functional fix is correct and well-tested; one structural change in the PTY send queue removes a documented safety fallback that could permanently stall sends to a terminal if a timer callback throws. The removal of the durationMs safety timeout was necessary to fix incorrect timing when confirmCleared extends completion past the nominal window, but it eliminates the only unconditional release path. A throw in any delay-callback before markSubmitted() permanently stalls that PTY queue for the tab session. Files Needing Attention: src/renderer/src/components/native-chat/native-chat-pty-send-queue.ts — consider whether a try/catch around delay-callback invocations, or a Promise.race timeout, should replace the removed safety net.
|
| Filename | Overview |
|---|---|
| src/shared/agent-tui-input-clear.ts | New shared utility implementing the empirically-measured 2N-1 law; well-bounded with MAX_LINES cap and Ctrl+K suffix for forward clearing. |
| src/renderer/src/components/native-chat/native-chat-pty-send-queue.ts | Removes the durationMs safety-fallback timeout; a throw before markSubmitted() now permanently stalls the PTY send queue. |
| src/renderer/src/components/native-chat/native-chat-launch-draft-send.ts | New module wiring the sized-clear path; agentInputLineCleared correctly treats unreadable screens and placeholders as unconfirmed. |
| src/renderer/src/components/native-chat/native-chat-runtime-send.ts | clearThenWrite + NativeChatSendOptions; durationMs correctly inflated by clearConfirmDurationMs; cancel path updated. |
| src/renderer/src/components/native-chat/NativeChatComposer.tsx | Wires resolveNativeChatLaunchDraftSend into every send branch; new deps correctly added to useCallback. |
| mobile/src/session/use-mobile-native-chat-launch-draft-seed.ts | New hook; null-sentinel for declined seeds; retraction effect guards with text equality. |
| mobile/src/session/use-mobile-native-chat-message-send.ts | Dedicated clearMobileNativeChatInput write; correctly skips for image sends; clearInputFirst conditioned correctly. |
| mobile/src/session/use-mobile-native-chat-image-attachments.ts | Passes sized clearInput to pasteMobileNativeChatImagePaths; readSeededLaunchDraft now in dependency array. |
| src/main/runtime/orca-runtime.ts | Tombstone map with LRU eviction at 200 entries; fence correctly strips resolved drafts from mobile snapshots. |
| src/renderer/src/lib/native-chat-launch-draft-mirrorability.ts | Drops \r\n rejection; permits drafts up to AGENT_TUI_CLEAR_MAX_LINES logical lines. |
Comments Outside Diff (1)
-
src/renderer/src/components/native-chat/native-chat-pty-send-queue.ts, line 135-142 (link)Safety-timeout removal can permanently stall the PTY send queue
The old
durationMssafety timer—explicitly documented as "always release after the declared duration so a cancel mid-flight cannot stall the per-pty queue forever"—has been removed. The queue entry now resolves only whenmarkSubmitted()orcancel()callsfinishEntry(). If anydelay-callback in the chain throws before reachingmarkSubmitted()(e.g.sendRuntimePtyInputthrows on an IPC error before the follow-ondelay(NATIVE_CHAT_SUBMIT_DELAY_MS, …)is scheduled),finishEntry()is never invoked,runPromisenever settles, and every subsequent send to that PTY blocks indefinitely. The user would have to navigate away from the tab to recover.Concrete path:
sendRuntimePtyInput(buildNativeChatPasteBytes(text))throws insidewriteBody→ the submit timer is never scheduled →markSubmitted()is never called →state.tailchain never advances.
Reviews (7): Last reviewed commit: "test(mobile): stabilize QR capacity boun..." | Re-trigger Greptile
…xpectation The Linear work-item launch seeds `Linked Linear issue: ENG-42\n<url>\n`. This test pinned the pre-relaxation rule (multi-line drafts withheld), which the send path no longer needs now that it submits the TUI buffer in place or clears every line first — so it asserted the exact behavior the fix removes. Assert the seeded payload instead of absence, so the test fails if the mirror regresses to single-line-only.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
mobile/src/session/use-mobile-native-chat-message-send.ts (1)
104-114: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCondense the new explanatory comments.
Keep only the non-obvious contract: clear every seeded line in a separate write and do not bundle
Ctrl+Uwith the body. The current multi-paragraph comments walk through implementation details and violate the concise-comment guideline.As per coding guidelines, comments must be concise and limited to non-obvious information.
Also applies to: 138-148
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 34dea18d-790e-4bc6-a1c9-96bb37bce156
📒 Files selected for processing (10)
mobile/src/session/use-mobile-native-chat-image-attachments.tsmobile/src/session/use-mobile-native-chat-message-send.test.tsmobile/src/session/use-mobile-native-chat-message-send.tssrc/renderer/src/components/native-chat/NativeChatComposer.tsxsrc/renderer/src/components/native-chat/native-chat-launch-draft-send.test.tssrc/renderer/src/components/native-chat/native-chat-launch-draft-send.tssrc/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.tssrc/renderer/src/components/native-chat/native-chat-runtime-send.tssrc/renderer/src/lib/agent-launch-prompt-delivery.test.tssrc/renderer/src/lib/agent-launch-prompt-delivery.ts
🚧 Files skipped from review as they are similar to previous changes (2)
- src/renderer/src/lib/agent-launch-prompt-delivery.ts
- src/renderer/src/lib/agent-launch-prompt-delivery.test.ts
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 2445a7de-eb14-484d-a6bd-1b75c4072806
📒 Files selected for processing (2)
src/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.tssrc/renderer/src/components/native-chat/native-chat-runtime-send.ts
| expect(writes().indexOf(NATIVE_CHAT_SUBMIT)).toBeLessThan( | ||
| writes().indexOf(NATIVE_CHAT_CLEAR_UNSUBMITTED_INPUT) | ||
| ) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Assert that the image send actually submitted.
Line 160 passes when NATIVE_CHAT_SUBMIT is absent (-1) and the queued send clears. Assert a non-negative submit index before comparing order.
Proposed fix
- expect(writes().indexOf(NATIVE_CHAT_SUBMIT)).toBeLessThan(
- writes().indexOf(NATIVE_CHAT_CLEAR_UNSUBMITTED_INPUT)
- )
+ const submitIndex = writes().indexOf(NATIVE_CHAT_SUBMIT)
+ const nextClearIndex = writes().indexOf(NATIVE_CHAT_CLEAR_UNSUBMITTED_INPUT)
+ expect(submitIndex).toBeGreaterThanOrEqual(0)
+ expect(submitIndex).toBeLessThan(nextClearIndex)📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| expect(writes().indexOf(NATIVE_CHAT_SUBMIT)).toBeLessThan( | |
| writes().indexOf(NATIVE_CHAT_CLEAR_UNSUBMITTED_INPUT) | |
| ) | |
| const submitIndex = writes().indexOf(NATIVE_CHAT_SUBMIT) | |
| const nextClearIndex = writes().indexOf(NATIVE_CHAT_CLEAR_UNSUBMITTED_INPUT) | |
| expect(submitIndex).toBeGreaterThanOrEqual(0) | |
| expect(submitIndex).toBeLessThan(nextClearIndex) |
…hat-multiline-send
…hat-multiline-send
…hat-multiline-send
…hat-multiline-send
…hat-multiline-send
…hat-multiline-send
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
mobile/src/session/use-mobile-native-chat-launch-draft-seed.ts (1)
41-55: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winScope seeded state by launch-draft generation, not only by
draftKey.The
has(draftKey)guard makes the first draft permanent. After retraction, storingnullleaves the key in the map, so a new launch draft for the same tab is never adopted. LatecreatedAtupdates are also ignored. Track(text, createdAt)generation state alongside the declined/null entry and add regression coverage for retraction followed by a new draft.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: dc81da21-5e17-4bbf-9ea1-19b3297b483a
📒 Files selected for processing (13)
mobile/app/h/[hostId]/session/mobile-session-route-types.tsmobile/src/session/mobile-native-chat-eligibility.tsmobile/src/session/mobile-native-chat-send.test.tsmobile/src/session/mobile-native-chat-send.tsmobile/src/session/mobile-terminal-records.test.tsmobile/src/session/mobile-terminal-records.tsmobile/src/session/use-mobile-native-chat-controller.test.tsmobile/src/session/use-mobile-native-chat-controller.tsmobile/src/session/use-mobile-native-chat-drafts-launch-draft.test.tsmobile/src/session/use-mobile-native-chat-drafts.tsmobile/src/session/use-mobile-native-chat-launch-draft-seed.tsmobile/src/session/use-mobile-native-chat-message-send.test.tsmobile/src/session/use-mobile-native-chat-message-send.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- mobile/src/session/use-mobile-native-chat-controller.test.ts
…ser (stablyai#11253) * fix(native-chat): mirror multi-line launch drafts into the chat composer seedNativeChatLaunchDraftForAgentTab rejected any text containing a newline, so every Linear launch ("Linked Linear issue: X\n<url>") and any GitHub launch with a typed note was invisible in chat. The rejection existed because the send path pre-cleared the TUI with a single Ctrl+U, which cannot clear a buffer with embedded newlines. Orca injects the draft itself, so when the composer still holds exactly what was injected the buffer already IS the message: the send becomes the submit key alone — no clear, no paste, nothing that can concatenate, and multi-line submits as one turn for free. Only the edited case needs real buffer replacement, and that now clears every line and verifies against the agent's rendered input line instead of firing blind. Measured on real PTYs against Claude Code and codex (both agree exactly): clearing N logical lines costs 2N-1 Ctrl+U. See src/shared/agent-tui-input-clear.ts for the law, the sequences that do NOT work, and why an upper bound is safe. * fix(native-chat): send the mobile clear burst as its own write Live QA caught the bundled form failing: a multi-line burst prefixed onto the body in the SAME terminal.send reached the agent as LITERAL Ctrl+U characters, so the parked draft survived and the message arrived as draft + 21x \x15 + body. Sending the burst as its own non-submitting write — the shape the image paste has always used — clears as intended. The body write's own single-Ctrl+U prefix is dropped once that dedicated clear ran, for the same reason: a Ctrl+U immediately followed by body text in one write lands as a literal control character and headed the received message. Re-verified live end to end: received prompt is exactly the draft, one turn, zero control characters. * test(native-chat): invert the multi-line Linear launch-draft mirror expectation The Linear work-item launch seeds `Linked Linear issue: ENG-42\n<url>\n`. This test pinned the pre-relaxation rule (multi-line drafts withheld), which the send path no longer needs now that it submits the TUI buffer in place or clears every line first — so it asserted the exact behavior the fix removes. Assert the seeded payload instead of absence, so the test fails if the mirror regresses to single-line-only. * fix(native-chat): preserve launch draft send contents * fix(native-chat): preserve confirmed send queue ordering * fix(native-chat): preserve send pacing after renderer stalls * test(native-chat): align activation with multiline draft mirroring * fix(native-chat): clear launch drafts from any cursor * fix(native-chat): retire mobile-consumed launch drafts * test(mobile): stabilize QR capacity boundary fixture
Follow-up to #9802.
seedNativeChatLaunchDraftForAgentTabrejected any text containing a newline, so every Linear launch (Linked Linear issue: X\n<url>) and any GitHub launch with a typed note was invisible in the chat composer. That rejection existed because the chat send pre-cleared the TUI with a single Ctrl+U, which cannot clear a buffer with embedded newlines.The measured law (please don't re-derive this)
Step 1 was an empirical probe, not design: real PTYs driven with
node-pty, screens read through@xterm/headless, against Claude Code v2.1.220 and codex gpt-5.6-sol. Both agents behaved identically.Clearing a buffer of N logical lines costs 2N-1 Ctrl+U. Each one kills to the start of the current logical line; when that line is already empty, the next deletes the newline and joins to the previous line — N kills + (N-1) joins. Measured: N=2 needs 3; N=4 with 5 leaves residue; N=4 with 7 is clean.
What does not work, all measured:
\x15\x01\x0b\x15(ctrl+a, ctrl+k, ctrl+u)EscA comparable desktop app that wraps an agent TUI uses the ctrl+a/ctrl+k/ctrl+u sequence as its pre-paste clear. The measurement beats that prior art — please don't "fix" this later by reaching for it. The law, the mechanism, and these negative results are documented at the clear site in
src/shared/agent-tui-input-clear.ts.Two further measurements that make an upper bound safe: overshoot is free (41 Ctrl+U against a 1-line buffer is clean) and visual wrapping costs nothing (one 300-char line wrapping several rows dies to a single Ctrl+U). Only logical newlines count.
The fix
Primary path — submit in place. Orca injects the draft itself, so when the composer still holds exactly what was injected, the TUI buffer already is the message: the send is the submit key alone. No clear, no paste, nothing that can concatenate, and multi-line submits as one turn for free (measured: a bare CR submits a multi-line buffer whole on both agents).
Submitting in place requires positive evidence the draft is still on the input line — the user can clear or retype that line directly in terminal view, and pressing Enter on a buffer that no longer holds the draft would silently lose the message. Anything short of "yes, it's still there" falls through to replace-draft, which is correct in every state.
Fallback — sized clear, for the edited case only. The burst is sized from the injected text (the buffer holds what Orca injected, not what the composer now shows), biased upward by 8 lines of slack because the injected count is a lower bound — the user can type into the TUI line too.
Verification, not assumption. Desktop reads the agent's rendered input line (
readTerminalScreen) after the clear and widens to a maximal burst if the draft is still visible. Polarity is deliberate: only a positive observation that the draft is gone counts as cleared; unreadable screen, unlocatable prompt line, or unusable fingerprint all mean "not confirmed" and trigger another (harmless) burst. Mobile cannot do this — there is no screen read on that surface, and the code says so rather than pretending otherwise.Then the
'\n'rejection is dropped, so multi-line drafts mirror.Live QA — both surfaces
Desktop (Electron + CDP) and mobile (iOS sim paired to this dev desktop), against
stablyai/demo-projectissue #17 with a typed note (note + URL joins with a blank line — the multi-line case).drafts: {}[Image #1]plus the exact draft text, one turn; the agent described the test PNG ("solid red square ~#FA4D4D")What live QA caught that unit tests could not
The first mobile run failed. The received message was
draft + 21 literal \x15 + body— the burst, prefixed onto the body in the sameterminal.send, reached the agent as literal Ctrl+U characters, so nothing was cleared and the draft concatenated. The unit tests were green because they assert the string handed to the RPC layer, which was correct; the host/TUI handling is what differs.Fix: send the burst as its own non-submitting write — the shape
pasteMobileNativeChatImagePathshas always used. Re-testing then surfaced a second, smaller instance of the same effect: the body write's own single-Ctrl+U prefix also landed as a literal character heading the message, so it's now skipped once the dedicated clear has run. Third run is clean: exactly the draft, one turn, zero control characters.Worth flagging separately: that second observation suggests a mobile text send with
clearInputFirst: trueand no parked draft may already prepend a literal\x15on main. I did not change that path and did not chase it — noting it as a possible pre-existing defect.Tests
Every added test was mutation-checked: production line reverted, suite confirmed RED, restored. 21/21 RED. Two were caught being vacuous first and fixed — a fingerprint-length mutation survived because no test screen wrapped (added a wrapped-line case), and a mobile mutation reported a false RED because those tests were already failing at baseline, which surfaced that this change had broken two existing harnesses that construct hooks without the new required arg (both fixed).
Two
max-linesviolations were resolved by splitting —resolveNativeChatLaunchDraftSendout of the composer,use-mobile-native-chat-launch-draft-seed.tsout of the mobile drafts hook. No disables, no per-file cap bumps.Rebase note for reviewers
This depends on #11222 (the
canMirrorLaunchDraftToNativeChatextraction) landing first. After rebasing, the relaxation belongs in that predicate's body — the rule must stay single-source. Their author measured the fallout: 13 tests across 7 files go red, two of which predate that PR. Those are expected reds that pin the current single-line rule; they'll be updated to assert the new behavior (multi-line mirrors and opens in chat), not deleted.That interaction is user-visible and rides on this PR: once multi-line becomes mirrorable, multi-line drafts start opening in chat view. The worktree-creation / folder-workspace path needs QA alongside
launchAgentInNewTabonce their argv-prefill fix lands.