Commit Graph
146 Commits
Author SHA1 Message Date
Chris Scott 80e7f78a9b test(frontend): wait for the picker's open focus before pressing Enter on the scope tab
The dialog moves focus to the search input on the next animation frame after opening. The test focused the sessions tab before that frame, so Enter sometimes landed on the search input and the scope never toggled. It now waits for the open focus, asserts the tab has focus, and checks the persisted scope.
2026-10-24 19:15:00 -04:00
Chris Scott 4b7652451b fix: order linked-server projects by session activity and stop waking idle projects
OpenCode stamps project time.active whenever a location boots, and directory-scoped requests boot it, so the Manager's reconnect made every idle linked-server project look recently active. Remote projects are now ordered and labelled by their newest session's update time (one global session list per server), falling back to time.updated. Pending permission, form and shell lists, and the backend replay, only run for linked-server directories with running sessions, tracked pending work or the viewed route. The hard-coded status dot on remote project cards is removed.
2026-10-24 00:32:13 -04:00
Chris Scott de4a9bcf1a fix(frontend): stretch the session picker tabs across the full width 2026-10-24 00:14:38 -04:00
Chris Scott bd746574e8 fix(frontend): scope linked-server pickers to the canonical project and stabilize the model pill
Sheet, desktop rail and session-page dialog resolve the same canonical remote project, reuse the page's session cache and hold the all-directories search while it resolves. Deleting the open session keeps ?repoTab=. Context usage keeps its identity between streaming flushes so ModelQuickSelect skips re-renders, the location prefetch waits for repo data, and dialog and bottom sheet share one return-focus hook. Picker route parsing, remote project query options and the local new-session button are shared.
2026-10-23 23:01:19 -04:00
Chris Scott 52aeb7780f feat(frontend): consolidate session picker navigation and remote project loading 2026-10-23 22:35:10 -04:00
Chris Scott 81fb2d4033 fix(frontend): compare the active session's server before closing the picker sheet 2026-10-23 21:25:22 -04:00
Chris Scott df9200880e fix: apply CodeRabbit auto-fixes 2026-10-23 20:52:17 -04:00
Chris Scott d99fcc268e feat(frontend): open session details from the header
Pressing the session title opens a details sheet with server, project, branch and directory and inline rename. Linked-server sessions show a server icon and their branch, child sessions show a parent session pill, a banner marks paused live updates while the stream reconnects, and the header context indicator is removed now that usage lives on the model pill.
2026-10-23 20:18:27 -04:00
Chris Scott 52162d5c4a feat(frontend): show context usage on the composer model pill
The model pill shows the context percentage with a tone meter, and the model picker gains a context strip with a Compact action.
2026-10-23 20:18:21 -04:00
Chris Scott 578a2211ba feat(frontend): replace the repos sheet with a sessions picker sheet
The mobile tab bar's Repos sheet becomes a Sessions sheet with Activity, Sessions and Projects tabs, matching the mobile app. The picker body is shared with the desktop session dialog, the scope toggles by tapping the selected Sessions tab, and the header adds new-session, add-repo and server controls. The collapsed desktop sidebar opens the session dialog instead of the old sheet.
2026-10-23 19:56:10 -04:00
ioplex 4ec62cd4e7 fix: address findings from the full Docker evaluation of main
Critical and high:
- repos: unlinking a local repo removes only the Manager reference and alias,
  never the repository files; confirm button reads "Unlink"
- auth: rate-limit by the socket address; trust proxy headers only when
  AUTH_TRUSTED_PROXY_HEADERS is set (documented and forwarded in compose)
- composer: per-session in-memory drafts (text, bash mode, attachments);
  Escape no longer clears the prompt
- url params: compose same-tick updates so schedule dialogs stay closed after
  create/delete; delete dialog names the job

Medium:
- tool rows show failures (non-zero shell exit, failed exploration members)
- voice conversation shows the specific error and a starting state
- settings: Escape in dropdowns and the shortcut recorder no longer closes
  the dialog; mobile deep links open the requested section; one content tree
  per platform
- closing pushed sheets, settings, tool panels and schedule dialogs goes back
  in history
- login returns to the requested page; signed-out pages make no
  authenticated requests
- action terminals keep their output (Manager-side output capture and replay)
- unpushed-commit detection, commit message kept on failure
- binary files with unknown extensions are detected and not editable
- tool panel resizes when docked and floats as a dismissible sheet when the
  page is too narrow
- Docker image runs tini as PID 1

Low: not-found states, add-repo and branch validation errors (4xx),
search-aware empty states, mobile repo sort/filter/select cues, sidebar
resize affordance and collapse shortcut, mobile unread badge, preview port
filtering, terminal close handling, walkthrough empty state and helper
session filtering, placeholder contrast, permission labels and focus,
TTS task-list sanitizing, git identity email validation, quieter git
logging, hermetic worktree tests, and accessible names for icon-only
controls.
2026-10-23 11:42:37 -04:00
ioplex 332fb07f45 feat(frontend): move session activity scanner under the composer
- Keep the model picker visible while a session is active
- Render a full-width segmented scanner below the composer via shared ScannerBars
- Reduce SessionStatusIndicator to the list-row spinner
2026-10-21 12:40:34 -04:00
Chris Scott 1a5776dd5b fix(sessions): keep the question card within the space above the prompt 2026-10-19 23:12:40 -04:00
Chris Scott 050f0a27e4 Merge remote-tracking branch 'origin/main' into feat/mobile-fullscreen-form-prompt
# Conflicts:
#	frontend/src/pages/SessionDetail.tsx
2026-10-19 22:50:16 -04:00
Chris Scott a525314c38 feat(sessions): add a side-question button to the mobile question sheet 2026-10-19 22:43:58 -04:00
Chris Scott b01e8707ee feat(sessions): full-screen mobile question sheet with persisted draft answers 2026-10-19 19:07:54 -04:00
Chris Scott 24745597f2 Merge remote-tracking branch 'origin/feat/linked-opencode-servers' into feat/remote-server-automation
# Conflicts:
#	frontend/src/lib/navigation.test.ts
2026-10-19 11:37:57 -04:00
Chris Scott e707e80b91 fix(sessions): delete local active sessions through the local server
Render the session picker's Active tab under the local server scope so
local rows deleted from a linked-server route no longer go to the
linked server.
2026-10-18 22:06:37 -04:00
Chris Scott 780d31087b Merge remote-tracking branch 'origin/feat/linked-opencode-servers' into feat/remote-server-automation
# Conflicts:
#	backend/src/services/remote-server-events.ts
#	frontend/src/components/navigation/MoreDrawer.test.tsx
#	frontend/src/components/navigation/moreDrawerItems.test.ts
#	frontend/src/lib/opencode-event-stream/openCodeEventStream.ts
#	frontend/src/pages/SessionDetail.tsx
#	frontend/src/pages/__tests__/SessionDetail.remote.test.tsx
2026-10-18 20:53:23 -04:00
Chris Scott 3a7227a602 Merge origin/main into feat/linked-opencode-servers
Keep the schedule reports list added on main and the remote-route gating
for activity, repos, and assistant entries added on this branch.
2026-10-18 20:29:25 -04:00
Chris Scott f566556fd6 feat(servers): harden pairing and run linked-server sessions in the UI
Replace the plaintext pairing exchange with a nonce and HMAC proof plus
AES-256-GCM encrypted credentials, bumping links to v2. Track session
ownership per linked server so activity, session picker, transcript, MCP
and skills views work against remote servers. Share encrypted secret
access, event routing and URL helpers across backend, shared and CLI.
2026-10-18 20:27:34 -04:00
Chris Scott a9bdb8358f feat(servers): run Manager automation on linked servers 2026-10-19 00:06:34 +00:00
Chris Scott db40b71108 feat(header): move mobile reports into the More menu and compact the header 2026-10-18 19:27:03 -04:00
Chris Scott c591c15743 feat(servers): link remote OpenCode servers with QR pairing 2026-10-18 22:35:39 +00:00
Chris Scott 33d9523666 Merge pull request #436 from chriswritescode-dev/feat/activity-switcher
feat(activity): surface active work across the session picker, tool rail and mobile
2026-10-16 12:48:52 -04:00
Chris Scott 84cdffa261 fix(activity): roll subagent activity up to its root and accept only selectable windows
- List child sessions in the activity query and credit each child's latest update
  to its root, so Recent includes roots whose subagents were active inside the
  window; children never become rows, and only roots of in-window children are
  fetched
- Show and sort activity rows by that rolled-up time
- Restrict activityWindowMinutes to the selectable options on write, and coerce a
  stored unknown value to the default on read so it cannot reset every preference
2026-10-16 11:57:52 -04:00
Chris Scott 8b6251d83b fix(activity): animate the braille spinner in SVG and tighten the activity lists
- Draw the TUI braille spinner as a 2x4 SVG dot cell stepped by declarative
  <animate> timelines derived from SPINNER_FRAMES: no JavaScript timer or React
  render per frame, and it keeps animating under prefers-reduced-motion so an
  active session never looks stalled
- Enlarge the spinner cell and dots so it stays legible next to 14px text
- Add a compact ActivityList variant for the mobile More drawer and Repos sheet:
  one flat list capped at five rows, single-line rows, no group subheadings
- Let ActivityList callers own navigation so a row tap navigates once instead of
  pushing a duplicate history entry
- Share the picker keyboard navigation between the session and project tabs and
  reuse the shared session merge helpers in the sidebar repo groups
2026-10-16 11:42:03 -04:00
Chris Scott d8f2fcf29c feat(activity): surface active work across the session picker, tool rail and mobile 2026-10-16 00:54:06 -04:00
Chris Scott 0b637cadf4 feat(walkthrough): build the change walkthrough in a spawned agent session
Replace the fixed, stop-based walkthrough with an agent-built one. Every
request (Generate, Update, Regenerate, /walkthrough, the multi-run button
and the agent's open_walkthrough) now spawns a separate walkthrough
session. That session reads the diff through a new walkthrough_changes
action, writes one self-contained HTML file into a Manager-owned
directory, and calls publish_walkthrough; the panel renders the file in a
sandboxed frame shared with the inline artifact card and the file browser
HTML preview.

Publication marks the walkthrough ready while execution is tracked
separately, so Stop, the 15-minute limit, polling, refine gating and
interruption when the target session is deleted follow the agent instead
of the first publish. One diff copy is reused per run. Regenerate
interrupts the previous session and removes its output directory.

Walkthrough sessions are kept and listed, with their completion and error
push notifications muted. The stop pipeline, its wire schemas and the
concurrency limiter it used are removed.
2026-10-16 03:58:31 +00:00
Chris Scott 95a9f6e1ed feat(sandbox): add the session sandbox control to the desktop composer
The sandbox toggle and resources dialog were only reachable from the mobile composer menu. Add SessionSandboxMenu next to the permission toggle on desktop and share the sandbox menu items with the mobile menu.
2026-10-15 16:53:49 -04:00
Chris Scott afc95039a8 fix(sessions): focus picker search after the tab shortcut on touch devices 2026-10-15 16:45:08 -04:00
Chris Scott abcecd1c0c fix(sessions): keep search focus when switching picker tabs 2026-10-15 16:36:23 -04:00
Chris Scott 87f28fbc6d Merge remote-tracking branch 'origin/main' into feat/session-picker-projects-tab
# Conflicts:
#	frontend/src/components/settings/KeyboardShortcuts.tsx
2026-10-15 14:20:32 -04:00
Chris Scott 1270e4b52e fix(sessions): render picker views inside matching tab panels 2026-10-15 17:32:19 +00:00
Chris Scott c41eff304c fix(shortcuts): share one shortcut label formatter between settings and the session picker 2026-10-14 01:14:55 -04:00
Chris Scott e6b1fb8138 fix(permissions): prioritize the viewed session and add request context to the permission dialog 2026-10-14 01:04:40 -04:00
Chris Scott 18102a3ce8 feat(sessions): switch between sessions and projects in the session picker
Add a Sessions | Projects tab switcher to the session picker header, a Projects tab listing navigable projects with search by name or branch and keyboard navigation, and a configurable switchPickerTab direct shortcut (default Ctrl+S) shown in the footer hint and Settings.
2026-10-13 10:06:18 -04:00
Chris Scott 10158ac164 fix(sessions): match OpenCode TUI context usage
The header context count differed from the OpenCode TUI and dipped then jumped
back up mid-session:

- cache write tokens were left out of the total, so context stored as a cache
  write was dropped and then reappeared as a cache read on the next step
- the newest assistant message without token data was skipped only one message
  back, so a step without usage showed 0 or a stale count

The total now includes cache write tokens and the newest assistant message that
reports tokens is counted, matching the TUI: messages before the latest completed
compaction are ignored, messages at or after a revert point are ignored, and the
indicator is hidden when no message qualifies or the total is zero.
2026-10-12 01:12:55 +00:00
Chris Scott d7022b5059 feat(walkthrough): use the selected session model for generation 2026-10-10 23:09:36 -04:00
Chris Scott 0752ebf360 feat(walkthrough): stop an in-flight change walkthrough generation
Add DELETE /api/change-walkthroughs/:sessionId to cancel the generation for a session and source. The service removes the in-flight entry, persists the partial walkthrough, and aborts a per-generation signal threaded through model resolution and every model call. Cancellation is not recorded as a failure and leaves the remaining stops pending. A Stop button in the walkthrough chrome calls the new endpoint.
2026-10-10 17:48:14 +00:00
Chris Scott c497df5161 fix(walkthrough): address review of agent-opened walkthrough
- Wait for the model catalog once per walkthrough generation instead of before every model call
- Report open_walkthrough as requested, not opened, and drop its unused metadata
- Share the ocm tool and action names through @opencode-manager/shared
- Remove the unused source-request nonce and duplicate session check
- Scan only new messages when auto-opening the walkthrough
- Assert the request action cannot reach the internal change-walkthroughs route
2026-10-09 11:25:26 -04:00
Chris Scott aa1da8d608 feat(walkthrough): open the change walkthrough from an agent tool call 2026-10-09 11:03:21 -04:00
Chris Scott 520d912c11 fix(walkthrough): name the selected source in the no-changes message 2026-10-09 09:27:44 -04:00
Chris Scott e40eca2838 fix(sessions): scope the session picker to the OpenCode project across worktrees 2026-10-09 00:17:24 -04:00
Chris Scott 08c03235c8 fix(sessions): include worktree sessions in the session picker 2026-10-08 23:49:09 -04:00
Chris Scott 0d65edfa44 feat(walkthrough): move source picker into the panel header 2026-10-08 18:11:37 -04:00
Chris Scott b01d3ab6db Merge branch 'main' into feat/walkthrough-plan-explain
Resolve ChangesWalkthroughSheet conflicts by keeping main's overview/paging model and the branch's source picker, per-stop status, and mechanical hunks.
2026-10-08 17:36:07 -04:00
Chris Scott ae0dff6e84 Merge pull request #402 from chriswritescode-dev/feat/walkthrough-overview-nav
feat(walkthrough): open on an overview page and page through stops
2026-10-08 16:30:23 -04:00
Chris Scott b9345e53b6 fix(walkthrough): return to the top of the overview on regeneration 2026-10-08 16:30:06 -04:00
Chris Scott 88b3543dc1 feat(walkthrough): plan-then-explain generation with selectable diff sources 2026-10-08 15:53:49 -04:00