Repository navigation
fix: distinguish startup activity from completed turns - #2753
Merged
Merged
Conversation
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.
Closes #2751
Summary
Problem
A fresh Codex pane could show Done before the user asked anything.
MCP startup animates the terminal title, and Hide interpreted the animation stopping as a completed answer.
The fix uses the program's explicit lifecycle report to distinguish startup readiness from a finished turn.
Visible setup and selection menus keep their input gate, and failed turns still finish.
Existing screen inference remains available when the program does not report its state.
Before → After
Review the absence of a startup completion and the actual first-answer completion below.
Not verified
Evidence
startup-ok.Tests
Risky files
hide-holder-protocol/src/lib.rs: negotiated wire extension stays absent for an old watch, before the existing package extension.hide-holder/src/osc.rs: one bounded report per pane; retain Done/Error across same-app Idle before facts coalescing; clear on lifecycle retirement.hide-node-link/src/holders.rsandhide-node/src/terminal/holder/watch.rs: optional device facts default absent and clear on watch loss.hide-core/src/engine/own/agents.rs: visible blockers win, then matching explicit state takes priority; core keeps completion sequencing and read ownership.Human review focus: check negotiated compatibility and retained completion boundaries, and judge the captured startup/first-answer states.
Verification record
agents/prd/startup-completion/prd.md(sha256 eb430870da1721f75277b379a15b3f51c3486c566ea1ac10be8cda5b4d9dae63)agents/runs/startup-completion/verification-report.jsonandagents/runs/startup-completion/verification-report.md; source fingerprint 0f9bcf784299a80f50843c02059096e83ad57c62b24ff280a3c8bfc736ecc2bdbash scripts/verify-cargo.sh test-scoped -p hide-holder-protocol -p hide-node-link -p hide-node -p hide-holder -p hide-core --lib(exit 0)bash scripts/verify-cargo.sh build -p hided -p hide-agent-hooks -p hide-holder(exit 0)bash scripts/verify-cargo.sh clippy -p hide-holder-protocol -p hide-node-link -p hide-node -p hide-holder -p hide-core --all-targets -- -D warnings(exit 0)6ec8140: B1-B6 match the implementation; no Fix now findings; author-produced runtime evidence and sealed PASS inspected in a same-head addendum.6ec8140: all six required perspectives covered; Error/hook closure and visible-blocker gates confirmed; earlier coalesced-completion defect closed; no current Fix now findings.6ec8140: two serious findings (Error stranding Working, and explicit readiness overriding screen Blocked) closed after predicted failing-before/passing-after regressions; no new blocking findings. Fixed wire vocabulary accepted; replay retention and engine-only menu-close unread news remain minor follow-ups.6ec8140: attempt 3 is SUCCESS; all 42 successful jobs complete. Windows E2E shard 3/3 passed all 30 tests without a flaky retry. The unchanged Windows npm spawn journey also passed 10/10 repetitions in run 44845843818.fix/startup-completion, basemain