Repository navigation
Complete desktop delivery: Space, Sources, Settings and background turns - #144
Merged
Merged
Conversation
A Claude turn ended, and stdin closed, at the first `result`, even while Bash or Agent work started with run_in_background was still running. When that work finished the CLI began a follow-up turn on its own, and its permission prompts failed with "Tool permission request failed: AbortError: Stream closed". A successful `result` that arrives while background work is outstanding is now held; the turn ends at the first `result` with nothing outstanding. The existing `background` set (#134) is the single record of outstanding work, now fed by every signal the CLI sends: run_in_background on any tool_use, Agent's default background, task_started/task_updated is_backgrounded, and background_tasks_changed; terminal task statuses, failed launches and leaving the CLI's background list clear it. - The wait is capped at 30 min (BACKGROUND_CAP_MS) with a warning notice, after which the CLI is stopped. - Once work drains, a 15 s idle window (BACKGROUND_IDLE_MS) re-armed by every message lets the held reply stand if no follow-up turn starts, so system/status cannot strand a turn; it never fires while a permission prompt is open or a follow-up turn (system/init) is running. - An error result ends the turn at once, with a notice when background work was still running. - Stop still kills the CLI, clears every timer and reports interrupted. Event shapes in the tests come from a live claude 2.1.289 capture. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preserve annotated citations and additional links instead of dropping answer text when extracting cards. Recover and verify the existing Sources implementation, and correct the reference shell delivery status.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 8, 2026
Wait for controls to exist, be enabled, and be hittable before interacting with menus, sheets, and screens. Preserve all paired-flow and demo outcome assertions and dismissal checks. Integrates the reviewed UI-test-only patch from local ios-ui-waits commit ff6a26c; its original branch and worktree remain preserved. Xcode build-for-testing passed; full exact-head native CI remains the delivery gate. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep the companion fixture paused until the iPhone test verifies rescan cancellation and an offline retry, then explicitly resume it. Wait for the keyboard before typing while retaining target-focus and exact response assertions. Verified the old fixture failure with a delayed rescan, the revised delayed flow, final paired and demo native E2E flows, build, 407 unit tests, and typecheck. Existing tap waits and timeouts remain unchanged.
This was referenced Oct 8, 2026
This branch was successfully deployed
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.
Complete the unfinished desktop delivery in one main-targeted PR:
Integrates reviewed delivery from #140, Sources recovery, #143, and Space. #145 has identical Space application code and adds documentation evidence preserved in its original branch and recovery archive. Close #140, #143, and #145 after this integration lands and its complete tree is verified on main. Preserve the prototype and unrelated dirty or active worktrees.
Validation on final signed head
23600b5a95d2884ef57210f1ba6e93a77c90f5e5:0933fc7; full local real-companion E2E passed 151 desktop and 7 site tests. Both exact-head hosted desktop checks passed those same totals with no skips.The native fixture now remains paused until the test verifies rescan cancellation and an offline retry, then resumes through a tokenized loopback control endpoint. The old 25-second outage caused cancellation assertions to race automatic reconnection on slow simulators; a delayed rescan reproduced the failure, then passed with the revised fixture. Text input waits for the keyboard and retains XCTest's target-focus check. Generic tap readiness, outcome assertions, and timeouts remain unchanged.
Knowledge test fixtures persist canonical paths like the real chooser. Space tests await asynchronous child-page selection before editing its title. The product focus regression verifies content focus, an unchanged title, and persisted text when deferred animation callbacks are released. CI uses Node 24 and enables the real local companion.
Space implementation evidence is included. Auth #141 and release #142 remain separately owned. This PR does not publish v0.0.9; the release stays held behind its acceptance and release gates.