Skip to content

Comments

fix: use GOOSE_GTWALL_FILE#1

Merged
tlongwell-block merged 2 commits intomainfrom
session-id-refactor
Feb 19, 2026
Merged

fix: use GOOSE_GTWALL_FILE#1
tlongwell-block merged 2 commits intomainfrom
session-id-refactor

Conversation

@tlongwell-block
Copy link
Collaborator

Switch gtwall, dashboard, and goosetown-ui from deriving wall/session identity from the first 8 chars of GOOSE_SERVER__SECRET_KEY (a server UUID) to using AGENT_SESSION_ID directly. AGENT_SESSION_ID is set natively by goose (e.g. "20260219_52"), inherited by all delegates, and is already short enough to use without truncation.

All three components now sanitize the ID to [A-Za-z0-9_-] before using it in filenames, screen session names, and portfile paths — ensuring consistent wall file resolution across gtwall, dashboard, and the Python UI server.

Existing wall files from prior sessions (named with 8-char UUID prefixes) will be orphaned but are harmless and age out naturally. goosetown-ui falls back to the newest wall-*.log if no exact match is found.

The goose wrapper now creates the wall file and exports its path via
GOOSE_GTWALL_FILE, which all delegates inherit automatically. This
replaces the dependency on GOOSE_SERVER__SECRET_KEY (a server
implementation detail) with an explicit, purpose-built env var that
follows the same pattern as GOOSE_MOIM_MESSAGE_FILE for telepathy.

Wall filenames use PID + RANDOM for uniqueness (wall-<pid>-<rand>.log).
Positions directories are derived from the wall path rather than a
separate naming scheme. Dashboard extracts and sanitizes WALL_ID from
the wall filename for screen session and portfile scoping.

AGENT_SESSION_ID was considered but rejected: delegates get their own
value, so it cannot scope a shared wall file.
- goose: drop exec so EXIT trap fires and cleans up wall + telepathy
- gtwall: anchor sed in --list to strip only the wall- prefix
- goosetown-ui: use removeprefix instead of replace for wall-id derivation
@tlongwell-block tlongwell-block changed the title Replace GOOSE_SERVER__SECRET_KEY with GOOSE_GTWALL_FILE fix: use GOOSE_GTWALL_FILE Feb 19, 2026
@tlongwell-block tlongwell-block merged commit 53d4fa6 into main Feb 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants