Skip to content

fix(agents): stop claiming an unconfirmed OpenCode handoff succeeded - #22546

Merged
nwparker merged 2 commits into
mainfrom
nwparker/opencode-handoff-prompt-delivery
Sep 24, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/opencode-handoff-prompt-delivery

Conversation

@nwparker

@nwparker nwparker commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​238 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​219
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​88 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​76

ELI5

"Continue in New Session" to OpenCode opens OpenCode but, on Windows, the handoff prompt is never typed in. Orca still says it worked. Two things were wrong: Orca gives up waiting for OpenCode's input box too early on Windows and types blindly into a half-started app, and when that happens it reports success anyway. Now it waits longer, and if it can't confirm the prompt landed it says so and offers to copy it.

What Changed

Before: the prompt is pasted at T+8s regardless of whether OpenCode's composer exists yet; the bytes are discarded; Orca shows "Session context sent to OpenCode in a new session."

After: OpenCode gets a 20s readiness budget (matching Codex), and when Orca pastes without ever observing the composer it says so — "Orca could not confirm OpenCode received the session context…" — with a Copy prompt action on both that notice and the existing failure toast.

Mechanism:

  • agent-paste-draft.ts — pasteDraftWhenAgentReady / pasteDraftToAgentPtyWhenReady fire a new onUnconfirmedDelivery when they paste blind, matching the existing onTimeout callback shape.
  • agent-launch-prompt-delivery.ts, launch-agent-in-new-tab.ts — plumbed through as onPromptDeliveryUnconfirmed. Additive; no existing caller changes behaviour.
  • launch-agent-session-continuation.ts — an unconfirmed delivery no longer claims success. The Copy action uses sonner's action (the shape CrashReportDialogSurface already uses) and window.api.ui.writeClipboardText. No new modal.
  • tui-agent-config.ts — draftPasteReadyTimeoutMs: 20_000 for opencode / opencode2.

Why

Fixes #22479.

The reported evidence does not mean what the report concluded, and that is worth recording. The daemon log line

{"event":"startup-command-delivery","written":false,"hasCommand":true,"commandLength":8,"viaShellArgs":true,"queuedByShellReadyBarrier":false}

looks like "the prompt was lost before launch" — commandLength: 8 is exactly "opencode". It is in fact correct behaviour. For promptDelivery: 'submit-after-ready', planLaunchAgentStartupPrompt deliberately launches the agent bare via launchEmpty() and carries the prompt separately, so the launch command is just the binary name. viaShellArgs: true is PowerShell's -EncodedCommand path, written: false only means the daemon didn't also type it into stdin, and queuedByShellReadyBarrier: false is right because PowerShell emits no ready marker. The daemon log has nothing to say about the prompt, which travels the renderer's paste-after-ready path and is never logged there.

Actual root cause — corrected after measuring on real Windows.

My original claim was that ConPTY never forwards DECSET 2004, so the readiness signal could not resolve. That is wrong. Measured on two Windows hosts (build 10.0.26200) through the repo's own node-pty, with useConptyDll: true pinned exactly as local-pty-utils.ts:174-175 sets it for Orca's terminals:

VARIANT dll      2004h_idx=31 25h_after=44  order_ok=true
VARIANT system   2004h_idx=83 25h_after=306 order_ok=true

And from a real OpenCode TUI (1.18.16) spawned the same way:

<ESC>[?1049h<ESC>[>4;1m<ESC>[?2027h<ESC>[?2004h<ESC>[?1000h...
EVENT t+4933ms ALT_SCREEN_1049h
EVENT t+4933ms DECSET_2004h
EVENT t+9591ms SHOWCURSOR_25h_AFTER_2004h

?2004h is present and in the right order. The render-cursor-after-bracketed-paste signal fires correctly — it is just late.

The real mechanism is a budget that was sized on macOS. OpenCode on Windows needs ~10s to mount its composer, and does not even enable bracketed paste until ~4.8s. Three consecutive runs on the slower host:

run ms to ?2004h ms to ready > 8s budget > 20s budget
1 4857 10086 yes no
2 4678 9783 yes no
3 4753 9989 yes no

opencode had no draftPasteReadyTimeoutMs override, so it took DEFAULT_DRAFT_PASTE_READY_TIMEOUT_MS = 8000. Every run overruns it; none approaches 20s. So the fix in this PR is right and the new budget has ~2x headroom on the slow host — but for a different reason than I first gave.

(The measurement's t0 is the pty.spawn() call, while Orca's timer starts at or after PTY creation, so if anything it flatters the 8s budget — and 8s still loses.)

The false toast is the same bug's second half: sendBracketedPasteToAgent returns true because the write was accepted, so delivered: true fires onPromptDelivered.

This likely also explains #20695 (Cursor: lands but unsubmitted) and #14505 (lands as a draft) — the same blind paste landing at a luckier moment.

Why not just raise the timeout: that alone would be a guess dressed as a fix. The honest-reporting change is what guarantees a user is never told the handoff worked when Orca cannot tell.

Linked Issue

Fixes #22479

Visual Proof

N/A for a before/after screenshot — I have no Windows machine, and the failure is Windows-only, so any macOS capture would show the working path and prove nothing. Staging a macOS screenshot of a Windows bug would be misleading rather than useful.

The behavioural proof is in the tests below, which pin the ConPTY condition directly: with no DECSET 2004 in the stream, the opencode/codex/default signals never resolve.

Testing

Platforms: macOS for the unit tests; the timing above was measured on two real Windows hosts (build 10.0.26200) via orca --environment.

New tests pin:

  • the ConPTY case — no 2004 → opencode/codex/default signals never resolve and never arm
  • the blind fallback raising onUnconfirmedDelivery, while the signal path does not
  • the 20s budget for opencode/opencode2
  • the continuation showing the hedged toast plus a working Copy action instead of success

Suites: pnpm test src/renderer/src/lib src/shared/draft-paste-ready-scanner*.test.ts src/shared/tui-agent-*.test.ts → 588 files, 6072 passed, 1 skipped. pnpm tc clean. pnpm run check:code-quality:changed → 0 new findings across 23 changed files.

agent-paste-draft.test.ts was at the max-lines ceiling, so new coverage went into agent-paste-draft-readiness-budget.test.ts. No max-lines suppression was added.

Now verified on Windows: DECSET 2004 arrives, the signal fires, and 20s clears the measured ~10s readiness with roughly 2x headroom.

Still not verified: the end-to-end "Continue in New Session…" UI repro. OpenCode 2 is not installed on either Windows host, and driving the v1 equivalent would have required creating a real git worktree and branch on the user's machine, so the check stopped there rather than mutating it. The measured timing explains the report without it: readiness never resolves inside 8s → blind paste → prompt lost → success toast anyway.

No non-2004 anchor is needed after all, since 2004 does arrive. If OpenCode startup ever exceeds 20s on slower hardware this will regress, and the honest-reporting half is what keeps that from being silent.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Platform scope: Windows-hosted PTYs only. On macOS/Linux the agent's own ?2004h reaches the renderer and the signal fires in ~2s.
  • SSH/WSL unaffected: the PTY runs on a Linux host, so 2004 arrives over the runtime stream intact. The fix keys on delivery evidence, not on client OS, so it cannot regress those.
  • Not a wire change, so Remote Wire Compatibility is not engaged. The web-host/paired route is untouched; its readiness runs on the remote host.
  • isOpenCode2LaunchCommand is a red herring here — it only selects the hook endpoint, and openCodeAgent correctly resolves to 'opencode' for the reporter's 1.17.13.
  • Worst case of the timeout change: a handoff that would have pasted blind at 8s now pastes blind at 20s, and says it couldn't confirm. Slower, but never silently wrong.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test pass locally

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The "never claim an unconfirmed handoff succeeded" rule is wired only on the local-terminal branch. The paired/web-host branch still reports success after the same blind ConPTY paste, and the PR note that its readiness "runs on the remote host" is not accurate — the scan runs in the client renderer. Details inline.

Reviewed changes

  • Blind-paste signal: pasteDraftWhenAgentReady / pasteDraftToAgentPtyWhenReady now call a new onUnconfirmedDelivery when readiness never resolves but the process-ownership fallback still pastes; plumbed through deliverLaunchPromptToAgentTab and the launch funnel as onPromptDeliveryUnconfirmed.
  • Hedged continuation: launchAgentSessionContinuation sets a local flag from that callback and shows a warning toast with a Copy prompt action instead of the success toast; the existing failure toast gains the same action.
  • OpenCode budget: opencode / opencode2 get draftPasteReadyTimeoutMs: 20_000 (was the 8s default), matching Codex.
  • i18n + tests: new deliveryUnconfirmed / copyPrompt strings, plus tests pinning the no-DECSET-2004 ConPTY path, the blind-paste flag, and the hedged toast.

ℹ️ Nitpicks

  • mimo-code carries the same render-cursor-after-bracketed-paste signal as opencode (2004-anchored, no quiet window) but stays on the 8s default, so on a Windows host it reaches the same blind-paste path this PR is treating. The new config comment also calls codex "the other quiet-window-less signal" when three agents share that shape. If leaving mimo-code alone is deliberate (its startup stream is unvalidated), a one-line note would keep the next reader from reading the comment as OpenCode-only.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

forcePaste: true,
onTimeout: timeoutNotice.onTimeout
onTimeout: timeoutNotice.onTimeout,
...(onPromptDeliveryUnconfirmed ? { onUnconfirmedDelivery: onPromptDeliveryUnconfirmed } : {})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onPromptDeliveryUnconfirmed is forwarded only on the local-terminal branch; the paired/web-host branch above drops it. A web-hosted OpenCode handoff therefore still writes the prompt blind (the client-side readiness scan never sees DECSET 2004 from the host) and reports success, because handleCreation calls onPromptDelivered on the true that the paste helper returns. The PR note that this route's readiness "runs on the remote host" is not accurate — the scanner is waitForAgentDraftInputReadyOnTab/waitForAgentDraftInputReady in this renderer, reading the streamed host bytes.

Technical details
# Web-host route is not covered by the unconfirmed signal

## Affected sites
- `src/renderer/src/lib/launch-agent-in-new-tab.ts:181-197` — `launchAgentInWebHostTab` receives `onPromptDelivered` but not `onPromptDeliveryUnconfirmed`.
- `src/renderer/src/lib/launch-agent-web-host-tab.ts:48,119-121` — only `onPromptDelivered` exists; `handleCreation` fires it on the boolean the paste returned.
- `src/renderer/src/runtime/web-runtime-terminal-creation.ts:35-41` — `deliverLaunchPromptToAgentTab` is called without `onUnconfirmedDelivery`.
- `src/renderer/src/lib/agent-draft-readiness.ts:56-91` — readiness is scanned client-side (`isRemoteRuntimePtyId` subscribes to streamed host bytes), so a host that drops DECSET 2004 (Windows ConPTY) never resolves `ready`.
- `agent-paste-draft.ts:116-134` — readiness never resolving still reaches the process-ownership paste, which returns `true` on an accepted write.

## Required outcome
- A user on a paired/headless Windows host that drops DECSET 2004 must not see "Session context sent …" for a paste the client never confirmed.
- Either thread the callback through the web-host chain, or correct the exclusion note so the invariant's boundary is explicit and accurate.

## Suggested approach
- Add `onPromptDeliveryUnconfirmed` to the `launchAgentInWebHostTab` args, pass it from `launch-agent-in-new-tab.ts`, forward it through `createWebRuntimeAgentSessionTerminal` into the existing `deliverLaunchPromptToAgentTab` call, and gate `handleCreation`'s `onPromptDelivered?.()` on it the way the terminal branch does.
- `web-runtime-session-terminal-host-authority.test.ts:581-587` pins the current five-field call shape, so that assertion needs the new key.

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: b2032b75-e9ff-4d64-877c-7298711c66f3

📥 Commits

Reviewing files that changed from the base of the PR and between a6c586d and c4e610c.

📒 Files selected for processing (1)
  • src/main/runtime/orca-runtime-tests/worktree-setup-and-startup-part-03.spec.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

OpenCode launch configurations now use a 20-second readiness timeout. Paste helpers signal when they write a prompt without observing the agent composer, and the terminal launch route forwards that signal. Session continuation distinguishes unconfirmed delivery from confirmed delivery, shows a warning with a Copy prompt action, and adds the same action to delivery-failure notifications.

Priority: ➖ Normal

Merge Risk: 🟡 Moderate · up to c4e61

A Windows user continuing a session through a paired host can still be told the prompt was delivered when delivery was not confirmed. Fix the web-host notification path before merging.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 10 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: preventing OpenCode handoffs from being reported as successful when delivery is unconfirmed.
Description check ✅ Passed The description is comprehensive and follows the required template. It explains the user impact, mechanism, rationale, linked issue, visual-proof limitation, testing, platform scope, and checklist sta…
Linked Issues check ✅ Passed The changes satisfy the coding requirements in [#22479]. OpenCode and OpenCode2 use a 20-second readiness budget. The continuation flow reports unconfirmed delivery instead of showing a success toast …
Out of Scope Changes check ✅ Passed The changes remain within [#22479]. The readiness budget, delivery callbacks, notification changes, clipboard action, locale strings, and related tests directly support reliable OpenCode handoff deliv…
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: d4d716e2-8843-4796-837a-2d3d823b3fed

📥 Commits

Reviewing files that changed from the base of the PR and between 519bde8 and cf66e10.

📒 Files selected for processing (10)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/agent-launch-prompt-delivery.ts
  • src/renderer/src/lib/agent-paste-draft-readiness-budget.test.ts
  • src/renderer/src/lib/agent-paste-draft.test.ts
  • src/renderer/src/lib/agent-paste-draft.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.ts
  • src/renderer/src/lib/launch-agent-session-continuation.test.ts
  • src/renderer/src/lib/launch-agent-session-continuation.ts
  • src/shared/draft-paste-ready-scanner.test.ts
  • src/shared/tui-agent-config.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.

{ agent: agentLabel }
)
),
copyPromptToastAction(prompt)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

#!/bin/bash
set -euo pipefail
# Inspect the timeout notice and its notification-state contract.
rg -n -C 18 -F 'createPasteReadinessTimeoutNotice' src/renderer/src
rg -n -C 8 'failureNotified|wasNotified' \
  src/renderer/src/lib/launch-agent-in-new-tab.ts \
  src/renderer/src/lib/launch-agent-session-continuation.ts

Repository: stablyai/orca

Length of output: 15810


🏁 Script executed:

#!/bin/bash
set -euo pipefail
printf '%s\n' '--- timeout notice ---'
cat -n src/renderer/src/lib/launch-agent-paste-timeout-notice.ts
printf '%s\n' '--- continuation relevant range ---'
sed -n '1,210p' src/renderer/src/lib/launch-agent-session-continuation.ts
printf '%s\n' '--- delivery helper binding ---'
rg -n -C 14 'notifyDeliveryFailed|notifyDeliveryUnconfirmed|copyPromptToastAction|failureNotified|wasNotified' src/renderer/src/lib/launch-agent-session-continuation.ts src/renderer/src/lib/launch-agent-paste-timeout-notice.ts

Repository: stablyai/orca

Length of output: 19685


Add Copy prompt to the readiness-timeout notice.

createPasteReadinessTimeoutNotice.onTimeout shows a toast without an action and then marks the failure as notified. The continuation therefore skips notifyDeliveryFailed, which is the only current path that adds copyPromptToastAction(prompt). A readiness timeout can leave the user without the Copy prompt recovery action.

Pass the delivered prompt to the timeout notice and attach the action for prompt submissions.

Suggested fix
--- a/src/renderer/src/lib/launch-agent-in-new-tab.ts
+++ b/src/renderer/src/lib/launch-agent-in-new-tab.ts
@@
       agent,
-      submitted: submitPastedPrompt
+      submitted: submitPastedPrompt,
+      prompt: pasteDraftAfterLaunch
     })
--- a/src/renderer/src/lib/launch-agent-paste-timeout-notice.ts
+++ b/src/renderer/src/lib/launch-agent-paste-timeout-notice.ts
@@
   tabId: string
   agent: TuiAgent
   submitted: boolean
+  prompt?: string
@@
-      toast.message(
+      const prompt = args.prompt
+      const copyPromptAction =
+        args.submitted && prompt
+          ? {
+              action: {
+                label: translate('components.agentSessionContinuation.copyPrompt', 'Copy prompt'),
+                onClick: () => {
+                  void window.api.ui.writeClipboardText(prompt)
+                }
+              }
+            }
+          : undefined
+      toast.message(
         translate(
           'auto.lib.launch.agent.in.new.tab.a5a1f7033f',
           "Your {{value0}} wasn't sent — paste it once the agent is ready.",
           { value0: args.submitted ? 'prompt' : 'notes' }
-        )
+        ),
+        copyPromptAction
       )

…as written blind

"Continue in New Session…" to OpenCode reported success even when the prompt
never reached the TUI (#22479). The paste-after-ready helper falls back to a
blind write when the composer-ready signal never arrives and only the agent
process is known to exist; that write was indistinguishable from a real
delivery, so the continuation showed its success toast.

- pasteDraftWhenAgentReady / pasteDraftToAgentPtyWhenReady report the blind
  fallback via onUnconfirmedDelivery, plumbed to launchAgentInNewTab as
  onPromptDeliveryUnconfirmed.
- The session continuation hedges instead of claiming success, and both the
  failure and the hedged notice offer "Copy prompt".
- OpenCode gets Codex's 20s composer budget. Both are quiet-window-less
  signals anchored on DECSET 2004, which ConPTY never forwards, so on Windows
  that budget is the settle delay before the blind paste.
The main-runtime startup-draft budget test used `opencode` as its stand-in for
"an agent without an override", which this branch invalidates by giving OpenCode
20s. It failed with "expected vi.fn() to not be called at all, but actually been
called 1 times" — the readiness signal now legitimately arrives inside budget.

Point it at `claude`, which still takes the 8s default, and add a companion
pinning OpenCode's 20s: a readiness signal at t+10s, past the old default, must
now deliver the draft. Removing the override makes that companion fail.
@nwparker
nwparker merged commit b7a4fee into main Sep 24, 2026
30 checks passed
@nwparker
nwparker deleted the nwparker/opencode-handoff-prompt-delivery branch September 24, 2026 02:47
nwparker added a commit that referenced this pull request Sep 24, 2026
…le (#22593)

The comment merged with #22546 claimed ConPTY never forwards DECSET 2004 and
that the signal therefore cannot fire on Windows. Verification on two real
Windows hosts refuted that: the sequence arrives in order on both ConPTY
backends, and the readiness signal fired in every run.

The budget was the actual problem — opencode does not enable bracketed paste
until ~4.8s and its composer is not ready until ~10s, so the 8s default expired
first and the draft was pasted blind. Same fix, accurate reason.

Note the claim that seeded this: terminal-agent-paste-bracketing.ts says 2004
"can be lost by remote replay or ConPTY", which is careful and not contradicted
here; the absolutism was mine.
flosrn pushed a commit to flosrn/orca that referenced this pull request Sep 25, 2026
…tablyai#22546)

* fix(opencode): stop claiming a handoff prompt was delivered when it was written blind

"Continue in New Session…" to OpenCode reported success even when the prompt
never reached the TUI (stablyai#22479). The paste-after-ready helper falls back to a
blind write when the composer-ready signal never arrives and only the agent
process is known to exist; that write was indistinguishable from a real
delivery, so the continuation showed its success toast.

- pasteDraftWhenAgentReady / pasteDraftToAgentPtyWhenReady report the blind
  fallback via onUnconfirmedDelivery, plumbed to launchAgentInNewTab as
  onPromptDeliveryUnconfirmed.
- The session continuation hedges instead of claiming success, and both the
  failure and the hedged notice offer "Copy prompt".
- OpenCode gets Codex's 20s composer budget. Both are quiet-window-less
  signals anchored on DECSET 2004, which ConPTY never forwards, so on Windows
  that budget is the settle delay before the blind paste.

* test(runtime): retarget the 8s startup budget test off OpenCode

The main-runtime startup-draft budget test used `opencode` as its stand-in for
"an agent without an override", which this branch invalidates by giving OpenCode
20s. It failed with "expected vi.fn() to not be called at all, but actually been
called 1 times" — the readiness signal now legitimately arrives inside budget.

Point it at `claude`, which still takes the 8s default, and add a companion
pinning OpenCode's 20s: a readiness signal at t+10s, past the old default, must
now deliver the draft. Removing the override makes that companion fail.

(cherry picked from commit b7a4fee)
flosrn pushed a commit to flosrn/orca that referenced this pull request Sep 25, 2026
…le (stablyai#22593)

The comment merged with stablyai#22546 claimed ConPTY never forwards DECSET 2004 and
that the signal therefore cannot fire on Windows. Verification on two real
Windows hosts refuted that: the sequence arrives in order on both ConPTY
backends, and the readiness signal fired in every run.

The budget was the actual problem — opencode does not enable bracketed paste
until ~4.8s and its composer is not ready until ~10s, so the 8s default expired
first and the draft was pasted blind. Same fix, accurate reason.

Note the claim that seeded this: terminal-agent-paste-bracketing.ts says 2004
"can be lost by remote replay or ConPTY", which is careful and not contradicted
here; the absolutism was mine.

(cherry picked from commit 795b64b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "Continue in New Session" to OpenCode never delivers the handoff prompt on Windows (silent failure, success toast shown)

1 participant