~bigbes/lethe

ref: d2a77459be9c2a2a61326e3bce1e64b749bda522 lethe/internal d---------
d2a77459 — Eugene Blikh 23 days ago
fix: store full opencode tool output and display it in session view

- Collector sender now supports Remote-User header for forward-auth
- OpenCode parser: store full tool output (was truncated to 120 chars + first line)
- OpenCode parser: generate fallback content for tool-only turns instead of empty content
- OpenCode parser: increase parse timeout to 5min for large DBs
- Frontend: show collapsible tool output in session detail below turn body
- Frontend: extract toolOutput from both opencode ({output}) and claude-code ({content}) formats
6806748f — Eugene Blikh 23 days ago
chore: track task file and dist update for search UI
54353ce8 — Eugene Blikh 23 days ago
chore: update TODO and dist after search UI merge
96e95ab9 — Eugene Blikh 23 days ago
fix: add tool column to search table; remove conversation bleed from comments
2d9d2b8e — Eugene Blikh 23 days ago
search: add /api/v1/search API and opencode collector parser

- Add FTS5 search repository with BM25 ranking, cursor pagination, and owner scoping
- Expose GET /api/v1/search with query, tool, host, since/until filters
- Add opencode collector parser reading from SQLite opencode.db
- Spike document recording canonical opencode storage format

Invariants: no schema migrations, no wire type changes, read-only search,
marker snippets (not HTML), invalid queries → 400 INVALID, parser interface
unchanged, collector state schema preserved, stats/react stubs untouched.

Reviewed: offset fix (message.rowid instead of time_created for progress marker),
all 22 test packages pass.
57c0d491 — Eugene Blikh 24 days ago
collector: persist skipped-only parser progress
9094d79e — Eugene Blikh 24 days ago
collector: enforce outbox cap before replay
f1673181 — Eugene Blikh 24 days ago
collector: fix daemon drain and backfill start
f3118d95 — Eugene Blikh 24 days ago
collector: preserve valid rows around ingest errors
538e632d — Eugene Blikh 24 days ago
collector: skip rejected rows after partial ingest
27c47142 — Eugene Blikh 24 days ago
collector: add polling source runner
ef738a28 — Eugene Blikh 24 days ago
collector: align ingest sender with server response
ad5ee652 — Eugene Blikh 24 days ago
collector: add ingest sender and outbox replay
d7eb706c — Eugene Blikh 24 days ago
collector: add config and state store
a1e67ca7 — Eugene Blikh 24 days ago
collector: add Claude Code parser
e920ae88 — Eugene Blikh a month ago
web: prune lethe_auth_failures log to the 5-min window on insert
be6e43e7 — Eugene Blikh a month ago
oidcstub: percent-encode authorize redirect query params (PC1)
f1926dc4 — Eugene Blikh a month ago
server/web: fail loud when index.html lacks </head> for config injection
13113b8c — Eugene Blikh a month ago
web: AuthGate consolidates three "not authenticated" cards

Create AuthGate component as the single source of truth for the
unauthenticated UI. Cold renders show a manual sign-in button (IV7);
mid-session expiry auto-redirects via useEffect (IV7); auth_error shows
the distinct error card with a "Try again" button and never auto-retries
(IV6). Swap the inline AuthError cards at index, projects, and
SavedSearchesSection call sites.
f2376137 — Eugene Blikh a month ago
web: /login + /auth/callback routes + auth context + config reader

- web/src/lib/config.ts: readConfig() reads window.__LETHE_CONFIG__ (IF1),
  converts client_id -> clientId, throws on absent config (GPC6)
- web/src/lib/authContext.tsx: AuthProvider subscribes to tokenStore, parses
  ID token name claim, exposes signIn/signOut/reportAuthError via context;
  hasBeenAuthenticated flag supports IV7 cold-vs-session distinction
- web/src/routes/login.tsx: /login route calls signIn(return_to) on mount
- web/src/routes/auth.callback.tsx: validates state+TTL, exchanges code via
  raw fetch to OP /token (allowed exception), stores access_token via
  tokenStore.set, anti-loop guard using countCallbackFailures (IV6)
- web/src/routes/__root.tsx: wraps tree in AuthProvider above
  KeyboardCursorContext
- web/src/routeTree.gen.ts: regenerated by Vite with /login and /auth/callback
- internal/server/web/dist/index.html: rebuilt artifact with new asset hashes
Next