Commit Graph
2 Commits
Author SHA1 Message Date
Mao NakamotoandCursor b1c4a3eb74 fix(control): stabilize autopilot injection and fleet observability
Align stop-hook, beacon, and UI dispatch gates so autopilot respects per-project pause, choice wire format, and typing blocks; add control audit trail, Fleet Doctor, and updated cloud-local docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 02:28:06 +02:00
g-butandClaude Sonnet 4.6 d966e906f1 feat(beacon): two-layer parallel popup — OS notification + browser beacon race
Layer 1 (< 100ms): notify-choice.py shows a native KDE notification with
action buttons built from the first 3 prompt slots. Uses gi.repository.Notify
+ GLib event loop so actions are properly wired (plain notify-send --action
is not supported by the KDE notification server). When clicked:
  - prints the slot number (choice)
  - patches /tmp/cockpit-beacon/{id}.json so the browser beacon sees
    choice != null and window.close()s itself within 500ms

Layer 2 (1-4s): beacon_python opens the full browser beacon in parallel.

Both layers write to a shared tempfile via atomic mv — first write wins.
The main loop polls every 200ms, kills both processes on first result.
If neither layer produces a choice (user is at keyboard, typing manually),
the hook exits cleanly without injecting anything.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 17:33:58 +02:00