Skip to content

fix(build,client): the stale-checkout guard says when the fetch fails and when origin is missing, and the join token expiry is in hours - #107

Merged
retr0h merged 1 commit into
mainfrom
fix/guard-and-token-expiry
Nov 27, 2026
Merged

retr0h merged 1 commit into
mainfrom
fix/guard-and-token-expiry

Conversation

@retr0h

@retr0h retr0h commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Part 3 of #103: items 8 and 9.

Changes:

  • The stale-checkout guard (item 8).
    • A failed git fetch, such as offline, was ignored, so the check compared with a stale origin/main without saying so. The run now says the fetch failed and which origin/main it compared with.
    • A checkout with no origin/main failed with an index error. It now fails with "has no origin/main to compare with: add the osapi remote as origin, or -e build_allow_stale=true".
  • The join token expiry (item 9). The client role parsed lab_join_expires with regex_replace('h$', ''), so 90m or 1d gave 0, and a new token came on each run (the client: each run mints a new one-use join token for the local agent, because just agent never joined here #90 bug again). The expiry is now lab_join_expires_hours, a whole number, and lab_join_expires is built from it.

Checks:

Closes #103: with #105 and #106, every item of #103 is fixed.

🤖 Generated with Claude Code

… and when origin is missing, and the join token expiry is in hours

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h
retr0h force-pushed the fix/guard-and-token-expiry branch from c0b4416 to a9028b4 Compare November 27, 2026 05:29
@retr0h
retr0h merged commit 943a5fd into main Nov 27, 2026
7 checks passed
@retr0h
retr0h deleted the fix/guard-and-token-expiry branch November 27, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant