Repository navigation
Conversation
DSH's managed hook posts to the hook server and never emits OSC 9999, so the dsh-only first-party done lane never fired and tui-idle waits ran to timeout. Give DSH turn-end hook authority through an agent-state-rules file, mark its SessionStart as a session boundary, and drop the dead dsh special case.
DSH posts only SessionStart at boot, which is no turn end, and its hook `done` was its only rest signal, so `terminal wait --for tui-idle` on a fresh pane ran to timeout with the composer up. Add screen rules read from captured dsh-tui 0.12.0 and 0.13.0 transcripts: the empty chat composer over its footer, and 0.13's launchpad placeholder composer. They settle without quiet because the whale intro repaints at rest; a turn's `esc to interrupt` row under the footer and its elapsed-time spinner row refuse them, and any other readable screen holds.
8 of 9 tasks
# Conflicts: # src/main/runtime/agent-state-rules/dsh.json
Contributor
… the new dsh-tui captures The serialize round-trip test replays every runtime fixture, so the new dsh-tui 0.12/0.13 readiness captures hit the same pre-existing row-0 true-colour background leak already baselined for dsh-tui-ready-no-key. No serializer code changes in this PR.
Contributor
|
Thanks for the cold-start analysis — it led to #33499 (merged, you're credited). dsh-tui 0.17 reports OSC 7501 idle at boot, which tui-idle already honours, and these rules matched only the 0.12/0.13 layouts; the remaining failure (first Enter refused before dsh's session opens) is fixed in #33499. Closing as superseded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
When you open a fresh DeepSeek Harness (DSH) terminal, Orca had no way to tell that DSH's input box was ready. DSH only says "done" after it finishes a reply, and a brand-new session hasn't replied to anything yet. So
terminal wait --for tui-idleon a fresh DSH pane waited until it timed out. Orca now recognises DSH's ready input box on screen.What Changed
tui-idle. It timed out at 60 s with the composer up and idle.Mechanism: DSH's rules file gets screen rules, the same way other screen-ruled agents (Antigravity, Cline, Prime Agent) are handled. All rules are written against new PTY captures of dsh-tui 0.12.0 and 0.13.0.
chat_composer_ready: the empty chat composer with the model footer as the bottom row.esc to interruptunder the footer, and before that its spinner row (· total Ns/总Ns) appears, which the rule refuses.launchpad_composer_ready: 0.13's launchpad composer, in English or Chinese.composer_not_shown: any other readable screen holds. That covers the first-run guide, menus, approvals and busy turns.repaintsAtRestoption for agents whose idle screen never goes quiet.Why
Linked Issue
Related: #25257. It covers the cold first-dispatch readiness that #26481 leaves out.
Stacked on #26481, which creates
agent-state-rules/dsh.json.Visual Proof
N/A: no UI change. This changes when a readiness wait settles; live timings are under Testing.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Transcript tests, against 10 new scrubbed captures:
dsh.json, 32 of these tests fail.Live, macOS, isolated background dev runtime:
DSH_OKdelivered.dsh-tui . --yolo. With extra flags, Orca must first recognise the pane as DSH, which is fix(runtime): name a launched agent by its foreground process before tui-idle settles #26490's job; Orca's own exactdsh-tui .launch is recognised already.pnpm tc:node, 150 related test files (1899 tests) andcheck:code-quality:changedare clean. All captures pass the transcript secret scan.Review
Agent skill upstream boundary
Notes
⛶, the opt-in shortcut-hint row): with these, DSH reads as not ready, which fails safe and is never falsely ready.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)