- GET /api/checkout/[plan]: auth-protected redirect route that creates a
Stripe checkout session (or bounces back to sign-in with callbackUrl
preserved if unauthenticated)
- Landing pricing CTAs now link to /sign-in?callbackUrl=/api/checkout/<plan>
when Stripe is ready, so the full funnel is connected end-to-end
- BillingSettings reads ?billing= query param on mount and shows a status
notice (success / canceled / error / not-configured / already-active),
then strips the param from the URL so it doesn't persist on refresh
- Suspense wrapper added around BillingSettings in settings page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The local credentials provider signs in only the default (owner) user, so
the post-acceptance signIn("local") call was always authenticating as the
wrong account. Added a user-password credentials provider that looks up
any user by ID and verifies their password hash, then wired the invite
page to use it with the userId returned by the accept API.
Also distinguishes expired vs already-used invite states so the error
message is specific rather than generic.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
switch-agent route returned 503 in cloud mode. Now enqueues a
switch_agent pending command instead, which the local daemon claims
within its 5s poll cycle and executes:
1. injects the quit command for the current agent (e.g. /exit for claude)
2. waits 1s for exit, then injects the launch command for the new agent
Schema: adds SwitchAgentPayload type and "switch_agent" to the type comment.
Queries: adds enqueueSwitchAgentCommand.
Daemon: adds execute_switch_agent + _agent_quit_cmd + _agent_launch_cmd
helpers; adds switch_agent case to the main dispatch loop.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
"Local password" read as localhost-specific jargon. Renamed to "Password".
Divider now says "or owner password" to distinguish the admin bypass from
the GitHub OAuth path for regular users.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
GoalCard was 319 lines (component limit: 300). State declarations and five
async handlers moved to use-goal-card.ts — business logic separated from
rendering. Component is now 239 lines, hook is 111 lines.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Attention bar was filled with routine "N uncommitted" noise from git dirty
state, crowding out real health signals (critical, failing tests). Git state
is already visible in per-project header chips and idle tiles.
Idle tile launch button showed "codex · gpt-5.4" which wrapped onto three
lines in the compact grid. Model is already in the title tooltip; showing
only the agent name keeps the chip single-line.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tabOpen propagation:
- Add tabOpen to FastProjectState; local path derives it from zellijTabCache,
cloud path reads it from DB (daemon-pushed).
- SSE change detection now fires when tabOpen changes so projects move
between active/idle immediately, not after the next 30s poll.
- mergeProjectPatches updates zellijTabs from incoming tabOpen patches
so the client's tab list stays live without a full page refresh.
Daemon status indicator (cloud mode only):
- daemonLastPushedAt computed from MAX(project_states.updatedAt) —
no extra query, derived from the already-fetched dbStatesArr.
- ControlPanel header shows "daemon Xs ago" when connected,
"daemon offline" when >90s stale, "daemon not connected" when never seen.
- Gives cloud users clear feedback when their local daemon is down.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Three improvements for web (Vercel) users:
1. orchestration/run: for claude adapter in cloud mode, render the intent
prompt and enqueue via pending_commands instead of returning 503.
The local daemon picks it up and injects. Other adapters still 503
(they require local workers).
2. runtimeAvailable flag: exposed in ControlData API response and
threaded down to ProjectCard so cloud mode is detectable client-side.
3. ReadyBanner auto-inject: disabled when runtimeAvailable=false
(no onAutoInject prop passed). The local stop hook already handles
auto-continuation the moment Claude finishes — the cloud countdown
firing 12s later would double-inject on top of running work.
Manual dispatch buttons still work in cloud mode.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Three-layer fix for silent launch failure on web:
- agent-runtime: discover ZELLIJ_SESSION_NAME via env or full session scan
so zellij action calls work when running outside a Zellij pane
- api/agent/launch: guard with isRuntimeAvailable() — returns 503 with
helpful message instead of hanging when launched from cloud/Vercel
- use-control-data: launchProject now checks res.ok and throws so the
error propagates to LaunchTabModal's error prop instead of silently
closing the modal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previously 9 of 14 views (Habits, Events, Money, History, Prompts, System,
Memory, Thoughts, Settings) were completely inaccessible from mobile — the
bottom bar only showed the 5 mobile:true items with no overflow path.
Add a 6th "More" button that opens a bottom sheet with the 9 overflow items
in a 3×3 grid. Sheet closes on tap-outside, on link navigation, or on the
X button. "More" button highlights as active when the current path is an
overflow item, giving correct active-state feedback.
No config changes — NAV_ITEMS is still the SSOT; OVERFLOW_ITEMS is derived
by filtering mobile:false at runtime.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Transcribe route: replace daemon-relay remote path with direct Groq Whisper
API call (whisper-large-v3-turbo). Cuts remote transcription from 8-15s to
2-4s and removes the polling/result-TTL complexity entirely. GROQ_API_KEY
must be set in Vercel env vars. Local path (Whisper via Python) unchanged.
Add callGroqTranscribe() to lib/groq.ts alongside the existing callGroqText()
so both text and audio inference share the same API client module.
Extract AgentSwitcherPopover from ProjectStatusChips (306→253 lines) into
its own focused file — removes the circular useRef/useEffect block from the
parent component.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previous pass went text-2xl/text-3xl — still too large for a daily-use
operational tool. Drop one step to text-xl/text-2xl.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Thoughts page: featured essay now leads the page above all filters.
Tag strip collapses from 5-row blob to a single horizontally scrollable
row — 70+ tags no longer consume the entire viewport.
Tags removed from grid cards (redundant when filter is visible).
Count merged inline with search bar.
Global: remove "Cockpit" kicker from PageLayout (redundant inside app).
Shrink ui-page-title text-4xl→text-2xl / sm:text-5xl→sm:text-3xl and
ui-page-subtitle text-lg→text-sm across all pages — operational tool
needs functional headers, not magazine-cover sizing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Daemon now detects whether each project's Zellij tab is actually open
and pushes tabOpen:boolean with every runtime state heartbeat.
Control panel on Vercel reads this from project_states instead of
calling getZellijTabs() locally — fixes the always-closed tab display
in cloud mode.
Beacon transcribe falls back to pending_commands queue when runtime is
unavailable (Vercel), so voice commands relay to local Whisper daemon.
Command results now carry a text field for transcription payloads.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without ZELLIJ_SESSION_NAME set, `zellij action` outside a session lists
sessions instead of targeting one, so write-chars fired nowhere despite
returning 0. Now `_find_session_for_tab` scans all sessions via
query-tab-names to find the right one, then prefixes every action with
ZELLIJ_SESSION_NAME. Also removes expandedCount from the OPEN TABS
metric card — UI expansion state doesn't belong in a Zellij-backed
tab count.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The Today action bar now switches between Plan My Day (before 5pm) and Wrap Up Day (from 5pm) using server-side time. The wrap-up prompt asks Ivy to tally commits, surface blockers, check overdue commitments, and name the first task for tomorrow. Also adds the template to the prompt library (personal/global, featured, schedulable at 5pm weekdays).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Six labeled-input blocks and two toggle-button groups shared identical structure. Local BriefField and ToggleGroup components remove the duplication. 462 → 413 lines.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The Today page had situational awareness (SummaryBar + Brief Ivy) but no planning CTA. Plan My Day sends a structured prompt asking Ivy to identify the one highest-priority project, three concrete tasks, and one relationship to maintain — the full morning planning loop in one click.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Four identical label/value/note blocks are replaced by a single typed component in control-panel-helpers.tsx. ControlPanel.tsx -33 lines.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Five components had verbatim copies of a 9-line useEffect block (keydown guard, INPUT/TEXTAREA skip, add/remove listener). Centralising it in useEscapeKey() makes the invariant a single source of truth.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Matches the per-row pattern already established in StuckGoalsCard — each upcoming deadline now has a direct Ask Ivy shortcut with deadline-contextual prompt.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>