The stop hook runs 'gt costs record' which executes 'bd create' to record session costs. When run from a role subdirectory (e.g., mayor/) that doesn't have its own .beads database, bd fails with: 'database not initialized: issue_prefix config is missing' Fix by using workspace.FindFromCwd() to locate the town root and setting bdCmd.Dir to run bd from there, where the .beads database exists.
39 KiB
39 KiB