Commit Graph
4 Commits
Author SHA1 Message Date
Neil c10881fa8c refactor(shared): organize execution and automation defining owners (#39776)
* refactor: import journal queue state from defining owners

* refactor(shared): organize execution and automation owners

* fix: retain type imports used by surviving test cases

* refactor: finish work item owners and refresh validation metadata

* test: infer reconnect status fixture type

* test(claude): resolve source files beside same-named directories

* test(runtime): group repository creation mock registrations
2026-11-08 06:46:09 -08:00
Jinwoo Hong 5e02b47d11 Reopen a closed terminal worker from its orchestration card (#37210)
* Open a closed terminal worker's conversation as a chat

* Open closed workers through a separate partyOpen call

Keep partyLocation a pure lookup; clients call partyOpen for a sender and fall
back to partyLocation on older hosts. Adopt from the closed pane's recorded
transcript, test terminal liveness by its PTY, keep follow-ups free of chat-host
installation, and report a possibly-created chat as retryable.

* Bring back a closed chat for a follow-up and match recorded sources by identity only

A follow-up to a worker whose conversation a chat holds reveals that chat in
the background when its tab was closed, so the follow-up is delivered there
instead of being refused. Recorded-source adoption passes only the pane identity
and conversation fields source matching reads.

* Reopen a closed terminal worker as a terminal, not a chat

partyOpen now resumes the closed worker's saved conversation in a new terminal
through the follow-up resume path, reusing a terminal that already holds it, and
answers with the terminal location. Removes the chat conversion and everything
only it needed; follow-up placement is as on main.

* Retry an uncertain worker reopen as the same request

* Resume again when the agent left the reopened worker terminal

* Type the hook row in the closed-worker follow-up test

* Find a closed worker's reopened terminal through the resume claim and hook rows

* Retry an uncertain closed-worker resume as the same request; reuse only a terminal whose hook row names the conversation

* Forget an uncertain closed-worker resume once its conversation reports

* Drop the closed-worker open map; overlapping opens share one resume request
2026-11-02 17:02:05 -05:00
Brennan Benson 5020bfead6 Keep Session History open when a chat workspace was deleted (#37200)
* Keep deleted-workspace chat Resume in History

* Address review: keep notification bounce, announce History toast, tidy refusal outcome

* Fix mobile type narrowing in History open failure

* Re-measure mobile web bundle sweep after History notice import removal
2026-11-01 19:31:05 -08:00
Brennan Benson 7e2f29aaf1 Open native chats on the phone in place (#36315)
* Open native chats on the phone in place

* Preserve desktop host and agent when opening chats

* Preserve chat opening and captured lifecycle contracts

* test: cover sender focus and unconfirmed chat close outcomes

* test: exercise structured worker CLI lifecycle through runtime socket

* test: use checked parked mail observation in CLI integration

* test: validate provider notification correlation identities

* test: construct checked lifecycle and navigation fixtures

* Keep cross-program session proofs in their test program

* Localize mobile chat opening feedback and complete runtime contracts

* Use the mocked text component identity in History feedback proof

* Temporarily expose grown E2E type diagnostics

* Keep E2E timer and fetch fixtures in their runtime domains

* Reconcile decreased E2E wait pattern counts

* Preserve live test clocks and expose remaining type diagnostics

* Keep mobile session data types independent of native views

* Complete structured session wire surface fixtures

* Expose existing grown E2E type diagnostics temporarily

* Preserve checked wire fixture tab mock signatures

* Preserve worker redrive when automatic close is refused

* Honor automatic close admission before settlement and retirement

* test: retain History reveal and close publication race

* Match automation reveal callback to activation result

* Align CLI integration fixture with current settings and output

* Prevent retained chats from reopening removed workspaces

* Import notification types directly from their owner

* Unify local removal fences for accepted worktree aliases

* Keep cross-surface authority tests in the combined test project

* Initialize coordinator mail test workspace ownership

* Register the retained automation chat test workspace

* Use checked inputs in worker start failure test

* Preserve the automation test repository host literal
2026-10-31 18:57:24 -07:00