Skip to content

Audit today's merges: Safari-safe URL checks, one sign-in refresh at a time, shared helpers - #45

Merged
andyjmorgan merged 1 commit into
mainfrom
claude/audit-pillars
Dec 1, 2026
Merged

andyjmorgan merged 1 commit into
mainfrom
claude/audit-pillars

Conversation

@andyjmorgan

Copy link
Copy Markdown
Owner

Audit and simplification pass over today's ~40 merges across web, host and backend.

Bugs fixed (web)

  • URL elicitation card and agent icons used URL.parse / URL.canParse, which older Safari lacks, so the session page could crash on an older iPhone. Now uses a shared webUrl() helper.
  • Simultaneous token renewals could each spend the refresh token; with rotation, the loser signed the browser out. Callers now share one in-flight renewal.
  • A failed /compact left an unhandled rejection.

Simplifications

  • Web: merged duplicate harness icon components; memoised the context reading.
  • MCP server: tool icons encoded once at startup; reach() by value; one askSteer and one per-machine fan-out helper (watchAll/unanswered) for sessions and folders.
  • Host: one TurnEndedError for both runtimes; one withIntent helper.

Net: 188 insertions, 207 deletions. No wire changes.

Verified

  • go build, go vet, gofmt and go test -race ./... all pass.
  • Web: tsc -b, vitest (17 tests) and the Vite build pass.
  • codex review --base main came back clean.

Noted, not changed: a cross-tab refresh-token race when two tabs renew at once; wake writes to the database inside a host socket's read loop; CSP allowing images from any https origin; staging cleanup with no timeout.

🤖 Generated with Claude Code

…a time, shared MCP and host helpers

Web: replace URL.parse/URL.canParse (missing on older Safari) with a webUrl helper,
share one in-flight token renewal, catch a failed /compact, merge duplicate harness
icon components, memoise the context reading.
MCP server: encode tool icons once, reach() by value, one askSteer and one per-machine
fan-out helper for sessions/folders.
Host: one TurnEndedError for both runtimes, one withIntent helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andyjmorgan
andyjmorgan merged commit 1c88a81 into main Dec 1, 2026
4 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.

1 participant