Export MAESTRO_SESSION_ID and MAESTRO_URL into spawned sessions #103

Closed
opened 2026-08-24 19:02:08 +01:00 by naps62-yolo · 0 comments
Collaborator

A hook running inside a session needs to know which session it is and where the daemon lives, otherwise it cannot report anything back.

When the daemon spawns a session, export into its environment:

  • MAESTRO_SESSION_ID — the session's UUID.
  • MAESTRO_URL — the daemon's own base URL, derived from its configured bind address.

Both must be present for tmux-spawned sessions and survive a daemon restart the same way the rest of the session record does. A session adopted from a pre-existing tmux session will not have them; that is expected, and the hook in #106 no-ops when they are absent.

Independent of the rest of the milestone — it can land before or after the protocol work.

A hook running inside a session needs to know which session it is and where the daemon lives, otherwise it cannot report anything back. When the daemon spawns a session, export into its environment: - `MAESTRO_SESSION_ID` — the session's UUID. - `MAESTRO_URL` — the daemon's own base URL, derived from its configured bind address. Both must be present for tmux-spawned sessions and survive a daemon restart the same way the rest of the session record does. A session adopted from a pre-existing tmux session will not have them; that is expected, and the hook in #106 no-ops when they are absent. Independent of the rest of the milestone — it can land before or after the protocol work.
naps62-yolo added this to the Sidebar cards milestone 2026-08-24 19:02:08 +01:00
naps62-yolo added the area/daemontype/featdifficulty/easy labels 2026-08-24 19:02:08 +01:00
naps62-yolo added a new dependency 2026-08-24 19:02:15 +01:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Reference: naps62/maestro#103