A spawned window's grant request shows in the window that spawned it (ATC-256) #393

Merged
merge-queue merged 1 commit from atc-256-child-approvals into main 2026-12-02 19:22:53 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/ATC-256 (this session's: https://openproject.home.romaine.life/wp/ATC-258)

Nelson: break-glass requests from spawned sessions weren't surfaced to the parent session, so he had to hunt them down; they should surface "and also didn't interrupt the current turn; they can just be a little annoying and on top of them."

Added

  • A spawned window's host, given strip-owner's hold with a grant request (break-glass, azure-access, continue), also tells the host of the session that spawned it. The parent is read from claude-pane's origin file (~/.local/state/claude-spawn/<session>, spawnedBy), so this covers worker windows and /new-window sessions alike, including those already open. A hold without a request clears it there. strip-owner sends that once either window decides it, so deciding in either clears both. The spawned window closing clears it too. It goes host to host as a new child-approval op on the worker role, and only another host may send it, not a session's own tools.
  • The parent window draws it on a row of its own between the notice row and the rule above the composer, in the strip's attention colour (#D2A6FF): fix-router asks for break-glass for 30 minutes: <reason> · lapses 7:35 PM · click to decide. The reason gives way to the width so the lapse time and the click always show. Several requests share the row, counted with whose they are. Nothing opens by itself, no key is taken from the draft, and Claude isn't told. A click on the row, or child-approval in the menu's session folder, opens the picker: the list when several wait, then the request's approve, deny and copy-link, decided as the window's own requests are (romaine-auth with this PC's device key).

Changed / left alone

  • host.Protocol stays 3: a children event an older window drops, optional Moved fields, and an op an older host refuses.
  • The window's own request picker (approval.go) is unchanged. It still opens by itself in the held window.

Proven

  • Tests: internal/host/children_test.go runs two hosts with the fake claude (origin file, hold, the parent's window told and told again on attach, cleared, refusals). internal/ui/children_test.go covers the row, the view height, the draft left alone, a click opening the picker, deciding, clearing, and several requests.
  • On a throwaway tmux server with stand-in windows and a fake hold (no real grant): the row appeared in the parent while a typed draft stayed, a click opened the request's picker, Esc left it, clearing the hold cleared the row, and closing the child's window with a request waiting cleared it too. Nothing was approved or denied for real, since that would reach auth.
  • Not proven: a real strip-owner hold (the fake used at-claude hold exactly as strip-owner calls it), and a decision through romaine-auth from the parent (the picker uses the same approver as the window's own).

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/ATC-256 (this session's: https://openproject.home.romaine.life/wp/ATC-258) Nelson: break-glass requests from spawned sessions weren't surfaced to the parent session, so he had to hunt them down; they should surface "and also didn't interrupt the current turn; they can just be a little annoying and on top of them." **Added** - A spawned window's host, given strip-owner's hold with a grant request (break-glass, azure-access, continue), also tells the host of the session that spawned it. The parent is read from claude-pane's origin file (`~/.local/state/claude-spawn/<session>`, `spawnedBy`), so this covers worker windows and /new-window sessions alike, including those already open. A hold without a request clears it there. strip-owner sends that once either window decides it, so deciding in either clears both. The spawned window closing clears it too. It goes host to host as a new `child-approval` op on the worker role, and only another host may send it, not a session's own tools. - The parent window draws it on a row of its own between the notice row and the rule above the composer, in the strip's attention colour (`#D2A6FF`): `fix-router asks for break-glass for 30 minutes: <reason> · lapses 7:35 PM · click to decide`. The reason gives way to the width so the lapse time and the click always show. Several requests share the row, counted with whose they are. Nothing opens by itself, no key is taken from the draft, and Claude isn't told. A click on the row, or `child-approval` in the menu's session folder, opens the picker: the list when several wait, then the request's approve, deny and copy-link, decided as the window's own requests are (romaine-auth with this PC's device key). **Changed / left alone** - `host.Protocol` stays 3: a `children` event an older window drops, optional `Moved` fields, and an op an older host refuses. - The window's own request picker (approval.go) is unchanged. It still opens by itself in the held window. **Proven** - Tests: `internal/host/children_test.go` runs two hosts with the fake claude (origin file, hold, the parent's window told and told again on attach, cleared, refusals). `internal/ui/children_test.go` covers the row, the view height, the draft left alone, a click opening the picker, deciding, clearing, and several requests. - On a throwaway tmux server with stand-in windows and a fake hold (no real grant): the row appeared in the parent while a typed draft stayed, a click opened the request's picker, Esc left it, clearing the hold cleared the row, and closing the child's window with a request waiting cleared it too. Nothing was approved or denied for real, since that would reach auth. - Not proven: a real strip-owner hold (the fake used `at-claude hold` exactly as strip-owner calls it), and a decision through romaine-auth from the parent (the picker uses the same approver as the window's own). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A spawned window's grant request shows in the window that spawned it, on a row above the composer (ATC-256)
All checks were successful
Suite default / scope (pull_request) Successful in 7s
Suite go / check-test-windows (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 8s
merge-queue landed on main
Suite go / scope (pull_request) Successful in 7s
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 6s
Suite release / deliver-prune (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 7s
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 11s
Suite default / reused-checks (pull_request) Successful in 5s
Suite release / check-package (pull_request) Successful in 6s
Suite go / check-test-linux (pull_request) Successful in 29s
Suite release / reused-checks (pull_request) Successful in 4s
Suite go / reused-checks (pull_request) Successful in 4s
Suite go / check-services (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
69f81cf3d2
merge-queue deleted branch atc-256-child-approvals 2026-12-02 19:22:53 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/at-claude!393
No description provided.