Skip to content

Complete desktop delivery: Space, Sources, Settings and background turns - #144

Merged
BunsDev merged 11 commits into
mainfrom
completion-e2e
Oct 8, 2026
Merged

BunsDev merged 11 commits into
mainfrom
completion-e2e

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Complete the unfinished desktop delivery in one main-targeted PR:

  • Keep Claude turns open while background work drains, with SIGKILL escalation for a process that ignores SIGTERM.
  • Render web links and numbered Sources cards while retaining citation notes and additional links.
  • Polish Settings tab icons and hide registration identifiers in display labels while preserving operational IDs.
  • Deliver persistent Space pages, nested pages, templates, favorites, search, import/export, and recoverable trash. Preserve imported Markdown indentation and apply new-page title focus before content typing begins.
  • Embed the pinned local OpenKnowledge companion, preserve reused servers, stop owned servers, and support all three themes through live changes and reloads.

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:

  • Fresh build, 407 unit tests, and typecheck passed.
  • Both final-source native E2E flows passed: paired Mac flow (118 seconds) and offline demo (91 seconds), with no failures or skips.
  • Desktop application code is unchanged from 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.
  • Independent reviews found no blockers. All four exact-head desktop and iPhone hosted checks passed. The push iPhone check required one targeted retry at the unchanged signed head after XCTest stalled before a send tap; the original failure and retry evidence are retained. This establishes a passing CI gate without claiming the input-delivery anomaly is eliminated.

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.

BunsDev and others added 5 commits October 7, 2026 10:24
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.
@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 8, 2026 6:26pm UTC

Request Review

Integrate Settings 3823fd9 and Space/Knowledge c8a4efa with the verified Sources and Claude background-turn work. Preserve imported Markdown indentation and citation annotations, use real companion E2E coverage in CI, and record current delivery status.
@BunsDev BunsDev changed the title Render web answers with links and Sources cards Complete desktop delivery: Space, Sources, Settings and background turns Oct 8, 2026
@BunsDev
BunsDev changed the base branch from claude-background-turns-fix to main October 8, 2026 16:24
BunsDev and others added 2 commits October 8, 2026 12:40
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 branch was successfully deployed

1 active deployment
Preview — 23600b5a Deployed Oct 8, 2026 by vercel[bot]
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.

1 participant