- Detect system color scheme (GNOME color-scheme + KDE ColorScheme + GTK theme)
- Define _DARK_PALETTE / _LIGHT_PALETTE matching Cockpit design tokens exactly
- Primary button now uses btn_primary_bg/fg keys so it reads in both modes
- UP NEXT / DONE labels now use theme-adaptive label_next / label_progress colors
- Revert main() to _pyqt_stop — stop mode no longer opens a Brave window
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- beacon.py stop mode now opens localhost:3000/beacon/<id> (Chrome --app mode)
instead of a PyQt6 window; PyQt6 confirm popup stays for sync blocking
- /api/beacon + /api/beacon/[id] routes create/poll/submit sessions via /tmp files
- /beacon/[id] page uses the same ui-btn-primary, ui-panel, ui-kicker components as
the rest of Cockpit — fonts, tokens, and layout are literally the same code
- Per-project agent+model prefs: modelPref column added to user_projects (pushed);
ProjectState now carries id/agentPref/modelPref; launch modal pre-fills saved
prefs and saves choice back after every launch; ProjectProfile agent selector
persists to DB immediately
- Default agent changed from codex to claude in agent-preferences + hook fallback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previously beacon used ~/.config/agent-prompts.json and Cockpit used
dimension-prompts.ts (two separate files with overlapping, duplicated content).
Now agent-prompts.json is the single source of truth for all prompts:
- Added dimensionId field to every entry to group them in Cockpit's UI
- Added 16 new dimension-specific prompts (refactor, security, user flows, etc.)
- New /api/prompts/agent route reads the file and serves it to the browser
- ProjectProfile.tsx now fetches from the API instead of importing from a TS file
- Removed dimension-prompts.ts entirely
Beacon reads agent-prompts.json directly (no change).
Cockpit reads it via API on demand.
To add/edit/remove prompts: edit ~/.config/agent-prompts.json once.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
bootstrap/route.ts was calling /api/user-projects via relative HTTP fetch
which doesn't work server-side — replaced with direct createUserProject() call.
Modal gets max-h-[calc(100vh-2rem)] overflow-y-auto so tall review forms scroll.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Wraps session summary in a QScrollArea (max 55% screen height) so content
never overflows the screen. DONE toggle now scrolls to reveal items instead
of resizing the window. Also bumps ai-brief timeout to 90s with user-visible
"~30s" hint so the CLI invocation no longer times out.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ThemeProvider was set to defaultTheme="system" + enableSystem=true, causing
the UI to render in light mode on machines with a light OS theme. CLAUDE.md
mandates dark-first; switching to defaultTheme="dark" + enableSystem=false
enforces this regardless of system preference.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Information architecture: UP NEXT + IN PROGRESS always fully visible
(these are actionable); DONE collapsed by default showing only a count
chip + ▸ expand toggle (historical, not a call-to-action). Removes the
health/tests/todos strip (that data lives in Cockpit, not a popup).
No QScrollArea complexity — content stays predictably sized.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace expand/collapse approach with a QScrollArea (max-height 300px). All
UP NEXT / IN PROGRESS / DONE bullets render in full; user scrolls within the
card rather than clicking through expand buttons. Also clamps popup position
so it never clips off the top of the screen on tall sessions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- New /api/project/ai-brief — calls claude --json-schema to parse free-form startup idea into structured brief (name, tagline, features, stack, etc.)
- New /api/project/bootstrap — creates local dir, GitHub repo, Neon DB, registers in Cockpit; returns YC-style launchPrompt for Claude Code
- New BootstrapModal 4-step wizard: describe → review/edit → creating → launch (wired to "New" button in ControlPanel)
- beacon.py: progressive disclosure in session summary — first item always visible, "Show N more ↓" expands rest per section (UP NEXT / IN PROGRESS / DONE)
- beacon.py: card widened to 600px, summary card border-radius 12px, expand hover uses accent color
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Default view shows only the first 'Up next' item with a 'Show all ↓' button.
Expanded view shows all next/done bullets with section labels and '↑ Collapse'.
Uses ui-card-section and ui-kicker from the design system SSOT. Single-item
sessions with no done text show inline with no toggle (nothing to expand).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bump item text to text-base (16px) with leading-relaxed, increase inter-item
gap to space-y-3 and section gap to space-y-5, use bold uppercase labels with
explicit tracking. Makes the two sections visually distinct and each item
legible without squinting.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Increase vertical spacing (space-y-2 per item, space-y-4 between sections),
bump outer padding to py-4, widen gap between arrow and text, use leading-relaxed
so items don't feel crammed when multiple bullets appear.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Both surfaces now split next/done/in_progress on '; ' to render each clause
as its own labeled bullet row (→ for next/in-progress, ✓ for done). Web card
adds 'Up next' / 'Done' section headers. Beacon uses colored bullet chars
matching the existing color scheme. Removes the 'show more' expand pattern
in beacon — items are already short when split.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Splits next and done text on '; ' to render each semicolon-delimited item as
its own labeled bullet row. Adds 'Up next' (accent) and 'Done' (muted) section
headers so the two groups are immediately distinguishable. Each item is still
fully copyable (select-text).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Running projects without a currentPrompt showed no activity indicator in the
card body — just a pulsing dot in the header. Now shows a compact accent-tinted
row with a spinner, 'Agent active' label, and today's commit count as evidence
of progress. Matches the RunningBanner style but doesn't require prompt tracking.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SessionBadge now extracts only the first segment (before '—' or ',') so agents
writing "LINT CLEAN, BUILD CLEAN, 0 TS ERRORS, 674 TESTS PASSING" render as
"LINT CLEAN" with the full text in a tooltip. LAST RUN orchestration panel is
suppressed while the agent is active — it's context-before-action noise during runs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
UP NEXT and IN PROGRESS now render without any truncation — they're actionable
and must be fully readable. DONE keeps a 400-char soft limit (context, not a
call-to-action). All session text labels now have TextSelectableByMouse so the
user can actually copy what the agent wrote.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces equal-weight chip grid with state-driven layout: next_best gets a
full-width accent-tinted primary button with pause/play adjacent; action intents
(test_fix, quality, commit) become a compact secondary chip row; More toggle
inline at end of secondary row; expanded section uses border-t separator.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Move ProjectState, SessionState, GitState, ProjectProfile, CurrentPrompt, ControlData
from app/api/control/route.ts into lib/control-types.ts — fixes circular dep
(lib/control-fast-state was importing types from an API route)
- Update all 10 import sites (components, hooks, lib) to use lib/control-types
- Add ProjectRow named type to db/queries/projects.ts; replace ReturnType<typeof getProjects>
- Session summary text: remove line-clamp on done (full text visible), add select-text
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Same pattern as the previous commit: createCommitment/patchCommitment/
deleteCommitment added to queries/today, createProject/patchProject/
deleteProject added to queries/projects. Routes are now thin delegates.
Remaining inline DB in projects/[id] GET (5-table aggregation) and
me/route (username uniqueness check) are left in place — both have
legitimate complexity that belongs at the route boundary.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
API routes were doing inline db.insert/update/delete for people,
goals, events, and subscriptions — violating the thin-HTTP-layer rule.
Added createPerson/patchPerson/deletePerson to queries/people,
createGoal/patchGoal/deleteGoal/listActiveGoals to queries/goals,
createEvent/patchEvent/deleteEvent to queries/events, and
createSubscription/patchSubscription/deleteSubscription to queries/money.
Also moved goals/completedAt tracking and the subtree deletion logic
from the route into the query layer where business logic belongs.
Routes are now thin delegates: validate input, call query, return JSON.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deleted src/lib/switch-agent.ts (zero imports, ~70 lines of stale
shellEscape + buildAgentLaunchCommand copies). Replaced the local
buildLaunchCommand in control/agent/route.ts with the canonical
buildAgentLaunchCommand from agent-registry.ts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shellEscape was copy-pasted into 4 separate files with identical
implementations. getZellijTabs (async) was re-implemented in 3 API
routes and control/route.ts had its own private copy.
- Add shellEscape + getZellijTabs to src/lib/zellij.ts (the natural
home for zellij/shell interaction utilities)
- Remove all 4 local shellEscape definitions; import from zellij.ts
- Remove 3 local getZellijTabs implementations; import from zellij.ts
- Collapse the duplicated tab-resolution block in orchestration/run/
route.ts (claude + codex both queried zellij separately; now one
shared await before the adapter branch)
No behaviour change — identical logic, single definition.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1. gitignore: add .local-toolchain/ and .python-vendor/ (584 MB of
toolchain binaries that would never belong in the repo)
2. autoContinueEnabled: replace two-effect pattern (read + write) with
a lazy useState initializer. The old pattern had a race where the
write effect ran with the stale initial 'true' value before the read
effect could correct it, silently overwriting a user's 'off' preference
on every page load.
3. SENTINEL_VALIDITY_S: extract the duplicated 86400-second constant into
constants/control.ts as SENTINEL_VALIDITY_S, separate from the display-
window constants (READY/CLOSED/CLOSING_WINDOW_S). Two files had a
local 'const READY_WINDOW_S = 86400' that shadowed and conflicted with
the exported READY_WINDOW_S = 600 in constants/control.ts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fallback from selectedDefinition?.label to getAdapterLabel() so "codex"
renders as "Codex" before the control data SSE response arrives.
Also relabels the intent chip toggle from "···" to "More ↓" / "↑ Less"
so it's obvious what the button does.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ActionButtons compact mode: p-2 (32px) → p-3 + min-h/w-[44px] (44px)
meeting WCAG AA touch target standard for the daily action queue
- GoalCard toggle button: zero padding → p-1.5 -m-1.5 with hover:bg-surface-raised
making sub-goal completion circles obviously interactive and easier to tap
- SummaryBar pills: py-1.5 (24px) → py-2 (28px) on both Link and div variants
improving mobile tappability for status navigation chips
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- orchestration-events schema + queries: persistent event log for agent lifecycle
(input_requested, close_requested, task_started, session_closed events per project)
- navigation.ts: isCurrentPath helper for active-link detection in sidebar/nav
- codex-wrapper: snap Codex config bridge — copies ~/.codex/config.toml into the
snap home so the Snap-packaged Codex sees the user's model/API key configuration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- agent-hook-lib.sh resolve_tab: add pane-file fast path using ZELLIJ_PANE_ID +
/tmp/claude-pane-<ID> — fixes silent exit when multiple tabs share one directory
(Cockpit + Cockpit Claude both mapping to /home/g/dev/cockpit caused exact_count=2,
making the conf fallback give up; and the zellij_pid walk landed on the wrong process)
- beacon.py: read countdown_seconds key with countdown_secs fallback — settings file
uses countdown_seconds but code was reading countdown_secs, silently ignoring config
- inject/route.ts + orchestration/run/route.ts: also unlink claudeReady and claudeClosed
sentinel files on injection — previously only agent-ready was cleared, leaving
claude-ready as a fallback that kept ReadyBanner visible until agentRunning detected
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Articles: control as nerve center, popup ownership, agent-agnostic architecture,
why Claude gets the popup, habits/goals/people/money/events/prompts/system/today
design rationale, projects as execution unit, the loop origin, and more.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Merge claude-config.ts into agent-config.ts (single SSOT for all state file paths,
project conf, sessions dir, and prompt file resolution)
- Delete claude-config.ts; all importers updated to use agent-config
- Add Gemini to agent registry with availability detection; update agent-catalog to
buildSwitchableAgentCatalog; add agent-preferences persistence
- Expand orchestration: add lifecycle state derivation, event persistence, and
shouldPersistLifecycleEvent guard in orchestration/state.ts
- Add thoughts-content.ts (SSOT for article metadata read from content/thoughts/)
- Add MOBILE_NAV_ITEMS export to navigation.ts; integrate into MobileNav
- AppShell: use useState lazy initializer for sidebar collapse (fixes react-hooks/set-state-in-effect)
- Sidebar: collapse to icon rail on smaller screens; AppShell shows user avatar + name
- Control: SSE stream for real-time fast-state updates; ReadyBanner auto-inject countdown
- Shell, prompts, settings, today, goals, events, people: styling and UX consistency pass
- Update error/loading/not-found to use design system tokens
- Package.json dependency updates
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ProjectTile session.next is truncated for compact layout — hover now
reveals the full text via title attribute.
FeaturedCard descriptions are all short; line-clamp-3 was never
activating and only blocked future longer descriptions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Agent output and suggested message bodies should never be silently
truncated — users need to read the full content to act on it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Attribute values in PersonDetail can be URLs or long strings that get
silently truncated. Adding title={value} so hovering reveals the full
text without requiring a click to edit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PersonInteractionsSection: max-w-[180px] truncate silently cut off notes
after ~20 chars. Restructured each row — channel + date on one line,
summary on its own line below, free to wrap. Notes are now fully readable.
EventCard: remove line-clamp-2 on event descriptions for same reason.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SubscriptionsCard: return null when no upcoming bills — removes "No
bills due soon" placeholder card that showed every day.
GoalsDueCard + EventsDueCard: remove md:col-span-2 wrapper so they
sit side-by-side in the 2-column actionable grid on desktop.
CommitmentItem: remove line-clamp-2 — commitment descriptions shouldn't
be silently truncated.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>