19 Commits
Author SHA1 Message Date
Chris Scott 0378d75224 Add axe-core mobile tab bar accessibility e2e suite 2026-12-03 16:21:44 +00:00
Chris Scott 80e013ec81 Scope goal reads to the session directory and stabilize the background activity tests 2026-11-13 19:47:13 +00:00
Chris Scott b625acfc0c chore(lint): replace ESLint with Oxlint and clear anti-slop findings 2026-11-13 01:13:34 -05:00
Chris Scott e46cf516c5 test(e2e): cover repository secret injection, masking and the Secrets panel
Against a real Manager and OpenCode server, with the shared mock
OpenAI-compatible provider:

- mapped values are absent from OpenCode shells while .ocm/project.json is
  untrusted and present once it is trusted;
- repo terminals receive them;
- an agent shell tool call that prints the secret is recorded as ***;
- the Secrets panel lists secrets by name without revealing values.

The shared mock provider can now script tool-call turns (setResponder) and
bind an ephemeral port (startMockProvider() exposes port), so specs no
longer have to reserve a fixed port.
2026-10-23 22:59:57 -04:00
Chris Scott b431c121a2 test(e2e): start the E2E backend with only the variables the suite defines
The E2E backend inherited the caller's environment and Bun auto-loaded .env
files from the repo root, so local credentials and host variables could leak
into the run. server.sh now launches the backend with env -i, passing PATH and
only the keys from createServerEnv (E2E_SERVER_ENV_KEYS), runs bun with
--no-env-file, and starts it from a scratch directory with a frontend symlink
so no .env file is in reach.
2026-10-23 22:44:22 -04:00
Chris Scott 22ee356c10 test(e2e): expect the login redirect to carry the requested path 2026-10-23 14:41:48 -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
Chris Scott 884233d95c fix(e2e): stop the login page requesting linked servers and update the background-activity test 2026-10-20 23:04:26 -04:00
Chris Scott a7b961fe30 Merge pull request #431 from chriswritescode-dev/fix/stale-background-activity
fix(session): stop the background activity indicator going stale
2026-10-15 10:54:08 -04:00
Chris Scott 1b2665bd2b fix(background-activity): address review on resync scope and stale subscribe responses
A directory subscribed by the stream but neither registered as a repo nor
remembered as a session directory was reconciled on subscribe but skipped on
resync, so a missed shell exit could leave the indicator stale. Pass the
stream's subscribed directories to onResync and reconcile their pending
actions and running shells alongside the tracked ones.

Subscribe responses that arrive after the connection was replaced or the
directory was unsubscribed could also apply snapshots to state the client no
longer owns. Ignore responses from a superseded connection and report only
directories still subscribed.

The stale-indicator e2e test now waits for the successful unsubscribe response
and asserts the subscribe responses succeeded instead of sleeping.
2026-10-15 10:18:06 -04:00
Chris Scott 74a2f6fb6e fix(session): follow a moved session's new directory without a reload
session.moved is published on the old directory and carries the new one in
data.location, so it reached the page. useSSE refreshed the cached session on
session.renamed but had no session.moved case, and the event context only
invalidated session lists, so the page kept using the old directory and never
subscribed the new one. Shells, prompts and other directory-scoped events in
the new directory were missed until a refocus, reconnect or reload.

Handle session.moved like session.renamed. The refetch flips the page's
sessionDirectory, it subscribes the new directory, and the stream's
onDirectoriesSubscribed reconciliation loads that directory's running shells
and pending prompts.
2026-10-15 13:25:01 +00:00
Chris Scott 37b4ab89f0 fix(background-activity): reconcile shells for directories subscribed by the stream
The background activity indicator went stale for sessions living in a
directory that is not a registered repo. Running shells were only synced
for repo directories derived from the repos query, so session directories
subscribed over the event stream were never reconciled, leaving the
indicator visible after the shell had exited.

Report the directories actually subscribed (mid-connection updates and
pending directories flushed after connect) from the event stream through
onDirectoriesSubscribed, and reconcile running shells and pending
permissions/forms for them in the event context.
2026-10-15 13:00:08 +00:00
Chris Scott cc0e136f3c test(e2e): wait for TTS synthesis to settle before asserting exclusions 2026-10-13 22:57:29 -04:00
Chris Scott 8a893d0d2a refactor(tts): read visible replies when floating button is tapped while scrolled up 2026-10-13 21:31:03 -04:00
Chris Scott 458f26134b test(e2e): cover inline markdown images and image attachments
Exercise the file browser preview, assistant markdown images served by a
local mock OpenAI-compatible provider, and composer image attachments
in a real browser against the isolated e2e instance.
2026-10-13 01:38:55 +00:00
Chris Scott 0b42f7de97 test(e2e): clean up run artifacts after the suite
- server.sh removes e2e/.tmp when the backend exits, forwarding SIGTERM so
  Playwright's graceful shutdown still applies
- a cleanup reporter removes playwright-report and test-results after a
  passing run; failed runs keep them for debugging and CI upload
2026-10-12 09:31:13 -04:00
Chris Scott 901bcd092e test(e2e): fail background activity cleanup when a shell removal is rejected 2026-10-12 00:11:45 -04:00
Chris Scott 964c6c2f6e test(e2e): cover session background activity indicator 2026-10-11 23:58:49 -04:00
Chris Scott 2580cdf863 test(e2e): add Playwright suite covering every app route 2026-10-11 22:30:55 -04:00