plano/crates/brightstaff
Spherrrical 5e689fed51 fix(claude-cli): use a fresh UUID per spawn for claude --session-id
`--no-session-persistence` only blocks resumability — Claude Code
still writes `~/.claude/projects/<workspace>/<id>.jsonl` for every
session. Reusing our deterministic brightstaff session id (a v5 UUID
hashed from the conversation prefix) caused the CLI to fail every
second request for the same conversation with
`Error: Session ID ... is already in use`.

Generate a per-spawn random v4 UUID inside `ClaudeProcess::spawn` and
pass that to `claude --session-id` (and stamp it on every stdin
JSONL event so the CLI accepts the turn). Keep the deterministic
brightstaff session id as the `SessionManager` map key so retries
still hit the hot child.
2026-05-04 14:45:31 -07:00
..
src fix(claude-cli): use a fresh UUID per spawn for claude --session-id 2026-05-04 14:45:31 -07:00
tests chore(claude-cli): drop dead code, drift-proof env defaults, clippy nits 2026-05-04 13:36:22 -07:00
Cargo.toml refactor(claude-cli): make session bookkeeping sync, drop lock-across-await 2026-05-04 13:35:11 -07:00