S18: spike before team answers (half a day) #45

Closed
opened 2026-10-02 05:36:27 +00:00 by jhgaylor · 2 comments
Owner

Blocks: #46
Part of: #44

Swarm MVP. Half a day to answer what team approvals need before #46.


  • Claude Code permission prompts in a terminal:
    • Which hook sees a tool permission prompt before Claude Code shows it in the terminal: a PermissionRequest hook, PreToolUse with a permissionDecision, or Notification? What does each receive (tool, input, suggestions), and how is it answered (allow once, allow always, deny with a message)?
    • If the hook blocks while it waits for a card, what happens when someone also answers in the terminal itself? Which one wins, and does the other end cleanly?
    • Does it work in --continued sessions, in subagents, and with bypassPermissions off and on?
    • Record real hook inputs as fixtures, as S13 did (crates/daemon/tests/fixtures/).
  • Answering from a notification through control:
    • Can the service worker open a Noise channel to the daemon through the relay, using the device key in IndexedDB, and send one approve or answer? Measure the cold-start time on Android Chrome and iOS Safari.
    • If not, does a minimal "answer" page opened from the notification do it faster than the full app?
  • Follow-ups into a terminal agent:
    • Is typing text and Enter into Claude Code's prompt reliable while it's idle? Bracketed paste, multi-line text, and a prompt that's mid-draft by the driver?
    • Is there a hook-based way to queue a message instead (a UserPromptSubmit-style injection), so a follow-up never fights the driver's keystrokes?

Output: a short note in spikes/s18-team-answers/, with fixtures and a go/no-go on answering from the service worker.

**Blocks:** #46 **Part of:** #44 *Swarm MVP. Half a day to answer what team approvals need before #46.* -------- - **Claude Code permission prompts in a terminal:** - Which hook sees a tool permission prompt before Claude Code shows it in the terminal: a `PermissionRequest` hook, `PreToolUse` with a `permissionDecision`, or `Notification`? What does each receive (tool, input, suggestions), and how is it answered (allow once, allow always, deny with a message)? - If the hook blocks while it waits for a card, what happens when someone also answers in the terminal itself? Which one wins, and does the other end cleanly? - Does it work in `--continue`d sessions, in subagents, and with `bypassPermissions` off and on? - Record real hook inputs as fixtures, as S13 did (`crates/daemon/tests/fixtures/`). - **Answering from a notification through control:** - Can the service worker open a Noise channel to the daemon through the relay, using the device key in IndexedDB, and send one `approve` or `answer`? Measure the cold-start time on Android Chrome and iOS Safari. - If not, does a minimal "answer" page opened from the notification do it faster than the full app? - **Follow-ups into a terminal agent:** - Is typing text and Enter into Claude Code's prompt reliable while it's idle? Bracketed paste, multi-line text, and a prompt that's mid-draft by the driver? - Is there a hook-based way to queue a message instead (a `UserPromptSubmit`-style injection), so a follow-up never fights the driver's keystrokes? **Output:** a short note in `spikes/s18-team-answers/`, with fixtures and a go/no-go on answering from the service worker.
Author
Owner

Done 2026-10-02, apart from the phone runs: spikes/s18-team-answers/README.md, fixtures in crates/daemon/tests/fixtures/s18-hook-*.json, merged in b0d6c1b. Go on the PermissionRequest hook, follow-ups through an asyncRewake Stop hook, and answering from the service worker on desktop. Results are in PLAN.md under "S18".

Done 2026-10-02, apart from the phone runs: spikes/s18-team-answers/README.md, fixtures in crates/daemon/tests/fixtures/s18-hook-*.json, merged in b0d6c1b. Go on the PermissionRequest hook, follow-ups through an asyncRewake Stop hook, and answering from the service worker on desktop. Results are in PLAN.md under "S18".
Author
Owner

Closing: done 2026-10-02 and on main (b0d6c1b; PLAN.md, S18; spikes/s18-team-answers/README.md), with its findings carried into #46. Still pending: Android cold start through the relay, and whether iOS shows notification actions, both needing a real phone.

Closing: done 2026-10-02 and on main (b0d6c1b; PLAN.md, *S18*; spikes/s18-team-answers/README.md), with its findings carried into #46. Still pending: Android cold start through the relay, and whether iOS shows notification actions, both needing a real phone.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
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
jhgaylor/illogical#45
No description provided.