Commit Graph
7 Commits
Author SHA1 Message Date
Theo BrowneandClaude Fable 5 8e67f03dee fix: bound Claude stat I/O, group Claude sessions by cwd, require error cause
The read cap now has a companion stat budget so a pathological Claude home
can't trigger unbounded sequential stats. Claude project directories group
transcripts by recorded cwd like the Codex scan — the slug is lossy, so one
directory can hold sessions from several distinct paths. Contract error
cause becomes required since every construction wraps a real failure.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-04 15:10:19 -07:00
Theo BrowneandClaude Fable 5 5fdc0a3381 refactor: scanner fails with the contract error; env via HostProcessEnvironment
The server-local error was a field-for-field clone of the contract
AgentSessionScanError, so the ws.ts mapping was an identity re-tag; the
service now fails with the contract error directly. CLAUDE_CONFIG_DIR reads
through the injectable HostProcessEnvironment reference.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-04 15:06:15 -07:00
Theo BrowneandClaude Fable 5 a87e825bc5 fix: worktree exclusion checks realpath and folds case on Windows
A symlink whose spelling looks harmless can resolve into the worktrees
directory, so the filter now also runs against the realpath. Windows
comparisons case fold, using the injectable HostProcessPlatform reference.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-04 14:59:00 -07:00
Theo BrowneandClaude Fable 5 1a1998e1b1 style: namespace-import ProjectionSnapshotQuery per service conventions
Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-04 14:56:45 -07:00
Theo BrowneandClaude Fable 5 8babb9b8b6 fix: normalize worktree filter separators; skip pre-typing on terminal reattach
Windows resolves paths with backslashes, so the configured-worktreesDir
prefix match failed there; both sides now normalize to forward slashes.
Reopening the onboarding install terminal reattaches to the still-live PTY,
so the pre-typed command is only written into a session with empty history.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-04 14:53:57 -07:00
Theo BrowneandClaude Fable 5 6378909671 fix: address review findings on onboarding scanner and wizard
- Scanner: expand ~ in CLAUDE_CONFIG_DIR; sort transcripts by mtime before
  applying the per-source cap; check alreadyImported against both recorded
  and realpath spellings; derive the worktree-sandbox filter from the
  configured worktreesDir instead of hard-coding .t3
- Contracts: AgentSessionScanError carries the structural operation
  discriminator and derives its message (drops redundant failure literal)
- FirstRunGate: require server config before judging workspace freshness
  (fixes both the offline-install-sees-wizard and config-race cases); only
  gate authenticated sessions
- Wizard: T3 Connect "connected" view requires a live connection; the
  no-machine wait gets a Skip; partial import failures keep the step open
  and report the count; disabled providers show "Enable in Settings" instead
  of Ready/Install; failed terminal opens retry
- Docs: match actual first-run and terminal sign-in behavior

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-04 14:49:20 -07:00
Theo BrowneandClaude Fable 5 3905ec8321 feat(web): first-run welcome wizard with agent setup and project import
New onboarding flow for fresh installs: choose how to connect (Local Only /
T3 Connect / Direct), verify Claude Code and Codex with live probe status and
an inline install terminal, then import existing projects discovered from
Claude/Codex home directories.

- FirstRunGate at the root holds back the entire authenticated tree until the
  first-run decision is known, so fresh installs see nothing before /welcome
  (no shell flash, no EventRouter thread navigation)
- New read-only agentSessions.scan RPC discovers project candidates from
  ~/.claude/projects and Codex session rollouts (cwd from transcript first
  lines, never the lossy dir slug; T3-managed worktrees excluded)
- Import creates projects via existing project.create dispatch; default
  window is last 30 days, full checklist behind Choose
- onboardingCompletedAt client setting gates the wizard; installs that
  predate the field only qualify when the workspace is fresh

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-04 14:35:17 -07:00