Skip to content

Latest commit

 

History

History
2659 lines (2263 loc) · 119 KB

TESTING.md

File metadata and controls

2659 lines (2263 loc) · 119 KB

Hermes Web UI: Browser Testing Plan

Desktop session sidebar compatibility (#7415)

Run ./scripts/test.sh -q tests/test_desktop_session_sidebar_visibility.py. The suite uses disposable SQLite databases and executes the shipped browser classifier in Node. It covers Desktop source normalization, ended histories, known assistant/tool-only stubs, missing role columns, per-session NULL roles, and the message-count fallback when no messages table exists.

For a manual cross-client check, create a conversation in Hermes Desktop and open WebUI on the same profile. The interactive session list should show the conversation with a Desktop source label. Empty sessions and sessions with known roles but no user turn stay hidden. Legacy Desktop histories with positive message counts remain visible when role metadata is absent or entirely NULL; that fallback does not prove their messages contain a user turn. This is a read-side projection change, not a database migration or live-streaming change.

Also run ./scripts/test.sh -q tests/test_desktop_orphan_sidecar_prune.py. Desktop sidecars use only the strict owning-profile orphan pass, even though Desktop is now classified as interactive. The fresh-process regressions assert that an isolated profile with an empty database cannot remove another profile's entry from the shared persisted _index.json. Confirmed owning-profile deletion must still prune with the interactive-session toggle either on or off. Hiding an interactive row from the response must not prune its retained index entry.

User-bounded legacy tool anchors (#8427)

Run ./scripts/test.sh -q -rs tests/test_issue8427_tool_anchor_user_boundary.py. The dependency-free helper cases execute the real ui.js functions in Node; missing Node is reported as a skip. If jsdom is already installed (or available through NODE_PATH), six additional cases exercise the real settled renderer across all three activity modes with Thinking on/off. They check three synthetic turns, all legacy tool metadata sources, final prose, tool ownership, collapsed Worklogs, and re-rendering. Missing jsdom skips only those six cases. No new npm install is required for the helper checks:

node tests/fixtures/issue8427_tool_anchor.cjs helpers
node tests/fixtures/issue8427_tool_anchor.cjs renderer compact_worklog true

For native-browser visibility evidence, serve a disposable checkout on a fresh localhost origin, not a running WebUI, and open /tests/fixtures/issue8427_tool_anchor.html. For example: python3 -m http.server 8789 --bind 127.0.0.1 from the checkout root. Use a fresh browser profile. Repeat at desktop and narrow widths with ?mode=compact_worklog&thinking=true, transparent_stream, and hide_all_activity, with thinking=true and false. The page sets document.documentElement.dataset.result to PASS or FAIL and reports the stage/result in its header. All three final answers must remain ordinary visible prose after explicitly expanding, collapsing, and re-rendering activity. The native browser fixture clicks the actual disclosure summaries; the Node driver calls those same handlers directly because jsdom does not execute inline listeners. The page records the actual viewport dimensions for screenshot evidence. These checks do not certify OS-level pointer delivery. The helper may borrow visible prose across tool rows only within the same user turn; its own prose/reasoning owner still wins.

This portable fixture loads production JS/CSS without boot.js, uses synthetic in-memory state and a minimal transcript shell, and disables fetch; it does not exercise API loading, live streaming, persisted preferences, or provider behavior. The Node driver additionally stubs layout observers, animation frames, and scroll APIs; jsdom assertions are not real-browser evidence. For staged screenshots, issue8427.prepare(mode, showThinking), issue8427.render(), issue8427.expand(true), issue8427.collapse(true), and issue8427.render(true) expose the same flow.

Project-picker deferred repaint handoff regression

Expand a parent with fork-child menus, open a picker, defer a list repaint, then reopen the parent's action menu. Its own dots must receive active/ARIA state and Escape focus, never the child's. On touch layouts, long-press must retain the rebuilt row as its anchor through release. Repeat for a fork child and the connected topbar title.

Project-picker gesture deferral and context-point menus

While the picker is open, a choice refresh that arrives between pointerdown and pointerup is deferred: the pressed row and the picker's place survive until the gesture settles, so the tap's click — dispatched in a later task than pointerup on touch — still selects the pressed project. The deferred refresh applies right after that click; a gesture that ends without one (pointercancel, a release outside the picker) applies it after a short grace period.

A menu or picker anchored on a zero-sized trigger (the ⋮ trigger hidden on touch-primary layouts, a repainted trigger) borrows the visible row's geometry; when the interaction recorded a context point, it opens like an OS context menu — left edge at the pointer, shifted left only to stay inside the viewport. tests/test_project_picker_viewport_position.py pins both rules in the Node fixture; tests/browser_project_picker_keyboard.py covers the keyboard, mouse and touch flows in real Chromium.

This document is for manual browser testing by you or by a Claude browser agent. It covers user-facing features of the UI across current releases. Each section is written as a step-by-step test procedure with expected outcomes. A browser agent (e.g. Claude with Chrome access) can execute this plan directly.

Prerequisites: SSH tunnel is active on port 8787. Open http://localhost:8787 in browser. Server health check: curl http://127.0.0.1:8787/health should return {"status":"ok"}.

Automated coverage: ~11,500 tests collected via ./scripts/test.sh tests/ --collect-only -q. Tests run on every PR via GitHub Actions on Python 3.11, 3.12, and 3.13 (3 parallel shards each), alongside a ruff lint gate, a headless browser smoke test, and a Docker smoke test. The suite covers the bootstrap/static wizard, real provider config persistence (config.yaml + .env), the /api/onboarding/* backend, the onboarding skip/existing-config guard, CSS regression coverage for thinking/tool card animation, streaming session persistence, mobile layout breakpoints, locale parity across 14 languages, and hundreds of issue/PR-pinned regression tests. Run: ./scripts/test.sh

Local regression focus: verify that a previously closed workspace panel stays visually closed from first paint through boot completion on desktop refresh; there should be no brief open-then-close flash.


Cancelled-journal recovery combinations

Run ./scripts/test.sh tests/test_cancel_recovery_properties.py tests/test_cancel_restart_journal_recovery.py. Use isolated HERMES_HOME, HERMES_BASE_HOME, HERMES_CONFIG_PATH, and HERMES_WEBUI_STATE_DIR directories. Seed 782920261003 selects 128 of 768 lifecycle combinations and covers all 156 pairwise axis combinations. The tests exercise the real eager/deferred checkpoint, Stop, journal, restart, cold/cached load, and next-send history builders. They preserve native image and tool payloads, reject ambiguous or malformed ownership, and check rollback and repeated-load idempotence, with capacity cases up to 17 hooks and 64 tool cards. This coverage does not certify external provider execution or filesystem crash durability.

Run ./scripts/test.sh tests/test_cancelled_history_real_producers.py for independent Agent-flush versus WebUI-settlement clocks, later Gateway turns after a live Stop, legacy integer/fractional Stop owners, and tool-card owners on cold/cached paginated HTTP reads. A terminal Stop excludes only its proved raw execution block, including when it retained live partial output; proved later Gateway exchanges remain in display and next-send history. Ambiguous clock/content occurrences still prevent prefix restoration. Sidecar-only Stop tool-card regressions repeat full, tail, and earlier-page reads through the production handler and real HTTP for missing SQLite, empty SQLite, and native-image mirror rows fully filtered from display. Owners use exact saved message objects, including distinct assistants with identical prose; invisible and missing owners remain excluded, and saved card metadata stays unchanged. Snapshot-parent/non-cumulative child Stop coverage runs in a separate HTTP server process to exercise lineage cache store/hit paths and repeated full, tail, earlier and owner-absent pages, with missing, empty and nonempty SQLite. Cache row copies retain independently stored exact-owner provenance; reconciliation composes that map before pagination without mutating saved indices. The worker stubs write real SQLite rows and exercise production worker/HTTP paths; they do not certify a real provider call.

Context replay matching

Run ./scripts/test.sh -q tests/test_context_replay_scaling.py tests/test_large_replay_settlement.py tests/test_issue1217_transcript_compaction.py tests/test_stale_user_context_contamination.py tests/test_context_message_stable_ids.py tests/test_issue6751_api_content_agent_replay.py. The context suite compares serialized output against the former greedy algorithm over seeded adversarial sequences, checks summary identity boundaries and all three reconciliation branches, and counts normalization/key comparisons for disjoint, periodic and near-miss sequences. Operation budgets, not wall-clock thresholds, are the regression gate. Benchmark no-overlap histories separately from correctness checks; include the shared helper and its reconciliation caller, and report row count, interpreter and base revision with timings. Use synthetic rows or isolated copies, never production session state.

Session-scoped media authorization

Run ./scripts/test.sh tests/test_media_inline.py tests/test_media_session_preview_auth.py. For files outside global media roots, only exact MEDIA: paths emitted by assistant or tool messages can grant access through the owning session. User, system, developer, unknown, blank, null, and missing roles must not grant access. The route-level role matrix covers CSV, diff, patch, Excalidraw, and HTML; no-session requests stay denied. The new text-artifact types remain download-only with nosniff, even when inline=1 is requested. Hard-denied state and secret paths stay denied regardless of message role or session token.

Run ./scripts/test.sh tests/test_media_preview_session_lifetime.py for lazy preview identity across a session switch. CSV, Excalidraw, PDF, and HTML action and fallback URLs retain the session and snapshot captured for their fetch, including requests started without a session. The Node harness executes the real loaders with deferred responses and PDF-ready/timeout callbacks; it does not certify browser rendering or real CDN availability.

Static JS runtime lint (brick-class regression guard)

Some JS bugs throw a TypeError/ReferenceError only when a specific function actually runs in the browser — node --check (lazy syntax check), source-presence tests, and even executing the file all miss them. Issue #3162 was exactly this: a const binding reassigned inside _ensureMessagesLoaded bricked "load conversation messages" on every mobile message (v0.51.161–166).

The guard is a curated, zero-false-positive ESLint config (eslint.runtime-guard.config.mjs) that runs ONLY runtime-error rules (no-const-assign, no-import-assign) over static/**/*.js. It is NOT a style linter and has no formatting rules.

# one-time dev setup (ESLint is a dev-only tool; the app stays pure Python + vanilla JS):
npm install --no-save --before=<a-date-≥48h-ago> eslint   # package-age guard
# run the guard:
npm run lint:runtime
# or directly:
npx eslint --no-config-lookup -c eslint.runtime-guard.config.mjs "static/**/*.js"

Assignment redaction preconditions

Run ./scripts/test.sh tests/test_redaction_assignment_preconditions.py tests/test_security_redaction.py tests/test_issue5204_redactor_memoization_contract.py tests/test_redact_large_string_cache.py. The assignment patterns require a literal =. The focused regression counts their calls through the actual redactor, including large URL-bearing text that passes the public-text prefilter, and checks masking and occurrence-aware code literal restoration. The agent compatibility cases use synthetic modern and legacy redactors; they do not certify an installed Agent registry. The fallback checks the post-credential-pass text, while literal restoration checks the original input. Other credential passes remain active without =. Cache policy, runtime pattern registration, and public API redaction settings are unchanged. Call counts prove omitted impossible scans, not latency, RSS, or responsiveness.

Run ./scripts/test.sh tests/test_redaction_benchmark_statistics.py for the benchmark's statistical regression. It executes the real benchmark entry point with deterministic clocks and synthetic redactors, then checks that console and JSON speedups both use the median of per-pair ratios. Its fixed samples make this measure differ from the ratio of timing medians; it does not test wall-time speed.

Run a synthetic, uncached direct-function comparison against an explicit Git base:

.venv/bin/python scripts/benchmark_redaction_assignments.py \
  --base-ref bfe40ffba8a09b6342189cd50c55535220a30d48 \
  --agent-dir /path/to/hermes-agent --rounds 12 --output benchmark.json

Example measured on October 13, 2026, Python 3.11.15 / Linux x86_64, AMD EPYC 9754 host, with actual Agent redactor source byte-identical to official commit 3f2abce7f468cf194bb7f9ff9c6a033b075d834c. Two separate 12-round runs, one untimed warmup per version/shape, alternating base/candidate order. Input generation and function construction are excluded from timing. The raw paired wall/CPU samples are in scripts/redaction_assignment_benchmark_samples.csv.

Synthetic input Base wall median (ms) Candidate wall median (ms) Median paired speedup
uppercase_url_64k_no_equals 210.533 20.152 10.30x
uppercase_url_256k_no_equals 878.037 76.576 10.95x
ordinary_url_64k_no_equals 23.679 20.062 1.18x
uppercase_url_64k_has_equals 323.537 341.480 1.00x
ordinary_url_64k_equals_first 26.771 26.792 1.00x
ordinary_url_64k_equals_last 26.581 26.461 1.01x
small_url_1k_no_equals 0.376 0.316 1.19x
small_assignment 0.046 0.046 1.00x

Each row contains 24 pairs. Paired speedup is the median of each pair's base/candidate ratio, not the ratio of the two pooled medians. The host is shared: for the equals-containing uppercase case the separate run ratios changed direction; 12 pairs favored each version, and median paired delta was +0.068ms. No stable benefit is claimed for that case. All timed outputs matched; two seeded 500-case differential batches also matched. These synthetic shapes establish mechanism and input-dependent function cost, not production input frequency, request p95, RSS, browser responsiveness or a resolved incident. Large strings remain uncached; no Agent redaction pass is bypassed.

Native raster redaction boundary

Run ./scripts/test.sh tests/test_mpf_jpeg_redaction.py tests/test_raster_data_uri_redaction.py tests/test_security_redaction.py. Native messages[*].content[*].image_url.url raster data may bypass text credential scanning only after complete container validation. MPF JPEGs require an APP2 MP Index with bounded TIFF entries, contiguous declared JPEG extents, and a complete SOF/scan/EOI sequence in each image. Gaps, overlaps, malformed frames, and trailing bytes fall back to text redaction. Image-shaped tool metadata does not acquire this exemption. This is structural validation, not pixel decoding or secret detection inside image metadata/pixels.

tests/fixtures/multipicture.jpg contains two Pillow-generated 8x8 solid-color frames (red and blue), not private photographs; generation instructions live in tests/test_mpf_jpeg_redaction.py. The tests cover both TIFF byte orders and credential text appended after the final EOI. Helper timing improvements do not by themselves prove browser or shared-server responsiveness; verify those separately with a real conversation and concurrent requests.

Python lint gate (ruff) — forward-looking, new-code-only

The Python twin of the ESLint runtime guard. A curated ruff ruleset ([tool.ruff] in pyproject.toml) catches latent-bug shapes — unused imports (F401), undefined/unused names (F841/F821), redefinitions (F811), mutable default args (B006), raise-without-from (B904), loop-variable capture in closures (B023) — plus real syntax/runtime errors (E9). It is not a style/formatting linter: the pure-style families (line-length, whitespace) are intentionally OFF so the gate never demands a reformat of existing code.

The existing tree carries a cosmetic backlog (mostly unused-import F401) that is deliberately not reformatted. So the gate is enforced only on the lines a change adds or modifies (scripts/ruff_lint.py --diff), which keeps new code clean without touching the backlog. Cleaning the backlog is a separate, maintainer-run, safe-fixes-only decision (tracked in #3273).

# one-time dev setup (ruff is a dev-only tool):
pip install ruff            # or: uv tool install ruff / uvx ruff ...
# the gate (only flags violations on lines you added/changed vs origin/master):
python3 scripts/ruff_lint.py --diff origin/master
# whole-tree backlog report (informational — never blocks):
python3 scripts/ruff_lint.py --all

tests/test_ruff_forward_lint.py holds the whole tree free of E9 (real syntax/runtime) findings and verifies the curated config shape; it runs in-suite when ruff is present and skips gracefully when it isn't — so environments without ruff aren't blocked, while CI (which installs ruff) enforces it. The diff-scoped gate runs as the lint job in .github/workflows/tests.yml and is also part of the maintainer pre-release pre-gate.

Automated browser smoke (runtime brick-class gate)

The ESLint guard above catches const-reassign / import-assign statically. The browser smoke catches the same brick class dynamically — plus anything else that throws only when a real browser executes the page (e.g. a function X(){} / window.X = {} name collision like #2715/#2771, which ESLint can't see).

tests/browser_smoke.py boots the real server.py (agent-free, on an ephemeral port, with an isolated temp state dir) and loads the key pages in headless Chromium, failing if any console error or uncaught JS exception fires on load. It runs in CI (.github/workflows/browser-smoke.yml) on every PR and push to master, and locally:

pip install playwright && python -m playwright install chromium
python tests/browser_smoke.py

It is intentionally credential-free: it strips every *_API_KEY from the environment before launching the server, needs no secrets, and does not drive a real model (it verifies the app loads and initializes cleanly — the brick class that breaks the page for everyone).

The same job then runs tests/browser_new_chat_focus.py, on the same agent-free setup: with every /api/sessions response held, New Chat, Cmd/Ctrl+K and the typed /new command must focus the composer (and /new show its toast), and the first message typed with no conversation open must be sent; each reads the session list once before that, and shows the new row once the list is released (#7936, #7996, #8004). Run it locally with python tests/browser_new_chat_focus.py.

It also runs tests/browser_project_picker_keyboard.py, which imports two conversations and creates three projects through the API and then drives both "Move to project" pickers. The single-conversation picker is opened from the ⋮ menu with the keyboard: its rows must be buttons in a named menu, focus must open on the conversation's current project, ArrowDown/ArrowUp must wrap and Home/End jump, Tab must close it, Escape must close it and return focus to the conversation's ⋮ trigger (also after a sidebar repaint replaced that trigger, after a right-click open, and for a parent row whose expanded fork has a trigger of its own), and Enter, Space and a click must each send the move. The batch picker must open on its first row and return focus to the selection bar's Move button. "No project" and "+ New project" must follow the interface language; in a touch context, with the drawer open, every row must be at least 44px tall, and so must every row of the ⋮ menu that opens the picker, which on a phone on its side must stay on the screen, scroll to its last row, and reveal the row a key moves focus to. That last part is checked with the menu opened by the script's own call and keys sent by the browser, and on two paths of real input: a right click on the row followed by End and the screen turned from 390x844 to 844x390 (a viewport resize, not a rotated device), after which the row that has focus must still be inside the menu's box; and a touch (browser touch events) held on the row until the menu opens and lifted beside it, after which focus must still be in the menu and End must reach its last row without scrolling the conversation list; and a touch held on a row in the middle of the screen, where the menu opens over the finger (390x844 and 844x390, and a fork's row at 844x390), and lifted there, after which no menu row may have been clicked, no request sent, the menu must still be open with focus in it, and a tap on a menu row or on the fork must then work; and, at 1280x800 with the mouse as the main pointer and touch events as well (a touch laptop, the only place a row's ⋮ button and touch meet), a long press on a conversation and on a fork, Escape, the mouse resting on the row, and then a tap on the row's ⋮ button, which must open the menu. Three more paths of real input follow: at 1440x900 a right click on a row and then keys only, where Tab from the first row must reach the second (and focus the script then blurs must come back to it), End the last, and three Tabs from there must leave the menu and reach a control of the page, with the menu still open and Escape closing it; a pen (the browser's pen pointer, which sends pointer events and a click and no touch events) held on a conversation at 390x844 and on a fork at 844x390 where the menu opens over it, and lifted, after which the menu must still be open with focus in it, no menu row clicked and no request sent, and the next pen tap must run the menu row it lands on, or open the fork, while a pen pressed on a fork at 390x844, dragged off it at once and lifted on another row must neither click nor open the fork, and a pen pressed on a conversation or a fork, moved off its row in one step and lifted before the long press is due, must get no ⋮ menu afterwards, and a finger or a pen held on a conversation or a fork at 844x390 until the menu opens, then dragged right, left or up and lifted, must send no request (a swipe to the right archives, one to the left asks to delete), leave no row drawn swiped or dragged, open no dialog, and leave the menu open on the row that was pressed; and one conversation's picker left open while another row's ⋮ menu is opened, by a long press at 390x844 and by a right click at 1440x900, after which the picker must be gone and Escape must leave neither open. A hardware keyboard on a phone, a real rotation, a real finger and a real stylus are not checked. In a long list the focused row must be inside the picker's box, or, in the batch picker, scrolled onto the screen by the conversation list. With a mouse on the light theme, a keyboard-focused row's ring must be the skin's --accent-text at 3:1 or more against the picker (checked for the single picker, on a project row and on "+ New project", which must be drawn at full opacity while it has focus, on the default skin and on the three skins with the palest accents, Terracotta, Sienna and Neon Paint, and for the batch picker's first row on the default skin; other skins are not checked), a row under the pointer must show the skin's hover wash, and "+ New project" must keep its accent tint; the dark theme must keep the ring, the wash and the 70% "+ New project" it had. With forty more conversations and fifteen projects, a mouse wheel over the open batch picker must still scroll the conversation list, and on four phone sizes every row of the single picker must be tappable wherever in the list it was opened, with the batch picker scrolling inside its cap; on the two landscape sizes the same must hold from a parent conversation whose open forks make its row taller than the room beside it. A list the screen has room for must show whole without scrolling: below its anchor, else above it, else slid up over it from the bottom of the screen; and an open picker must follow a shorter window or a turned tablet, also after a sidebar repaint, keep the row the keyboard is on inside its box when the resize caps its height, and close, without handing focus back, when the resize hides the sidebar it was opened from: a phone turned either way, or a window narrowed until the sidebar collapses or becomes a closed drawer (#8044). Run it locally with python tests/browser_project_picker_keyboard.py; add --screenshots DIR to write the open picker at 390x844, 820x1180, 844x390 and 1440x900.

Last, it runs tests/browser_session_row_activation.py, which imports three conversations and opens them from the sidebar without a pointer press. Tab from the conversation filter must reach a conversation title, every row title must be a native button, with aria-current="page" on the open conversation's title. Mouse events without pointer events (how Firefox performs a screen reader's activate command, e.g. NVDA in browse mode), a bare element.click(), and Enter on the focused title must each open the conversation. A sidebar repaint restores the same previously focused title; it must not steal focus from the composer or another control. After Enter opens a conversation, focus must be on that row's rebuilt title, so the next Tab reaches its ⋮ trigger; Enter on one title and then another before the first has loaded must leave focus on the second (open) conversation's title, never the first; on a phone, focus must not stay inside the closed drawer. A mouse press on a title must not park focus there (a refresh deferred while the user interacts must apply once the mouse leaves), and double-click must still rename. Dragging from a title onto the row's ⋮ trigger must not open the conversation. A held (auto-repeated) Enter must not open it again, Enter on a title must not answer a visible tool approval card (the document-level "Enter = Allow once" shortcut), and a right-click on a row must not swallow the next keyboard activation. A real mouse click and a touch tap must still open it exactly once, and a mouse drag along a row must not open it. Mixed input, in Chromium touch contexts at 1440x1000 and 390x844 with touches sent through the native input pipeline: after a short horizontal swipe (no compatibility click) the first Enter, or a screen reader's activate command, about 200 ms later must open another conversation, and so must Enter right after a tap or a mouse click. Enter on the row's ⋮ trigger must open its menu, not the conversation; and in selection mode the title must not be a link. A click or tap on another title during a rename must commit and end the rename; with the name unchanged, the tap must not also open the other conversation (as on master). Clicking a title during a project rename must save the project name, and on the 1440x1000 touch run a tap on a title must move focus out of the focused search box. A long press must open the row's action menu with focus on its first item, and releasing the finger must leave focus there. The checks run in Chromium, and also in Firefox and WebKit when their Playwright builds are installed and launch (python -m playwright install --with-deps firefox webkit); a missing or unlaunchable engine is reported as skipped. Run it locally with python tests/browser_session_row_activation.py. After that, it runs tests/browser_terminal_screen_reader_mode.py, which opens the composer terminal in a temp workspace (a real local shell) and toggles the "Screen reader mode" checkbox in Settings > Preferences. With the preference off the terminal must have no xterm.js accessibility tree; checking the box must add the tree to the same open terminal, including output printed before the switch; unchecking it must remove the tree again; and after a reload with the preference on, a new terminal must start with the tree. It uses Firefox too when its Playwright build is installed. The page loads xterm.js from cdn.jsdelivr.net, so the gate needs network access. Run it locally with python tests/browser_terminal_screen_reader_mode.py. Manual check with a screen reader (for example NVDA + Firefox): with the preference on, typed input and new terminal output are read, and the visible rows can be read in browse mode. Known limitation (xterm.js 5.3, upstream issue #3679): with the mode on, xterm ignores input events that arrive without a keydown, so text from dictation, some IMEs and Android soft keyboards may not reach the shell. Real key presses work in both modes.

It then runs tests/browser_file_tree_keyboard.py, which starts the server with a temporary default workspace and drives the Files tab from the keyboard in Chromium, and in Firefox when Playwright's build is installed. The container must be role="tree" with a name, every row a treeitem with aria-level, folders with aria-expanded and files without it, names reading "x folder", "y file, 1.5k" (name first, then the kind and the size column's text) or "z symlink" (a symlink also describes its target), and the arrow glyph and icon hidden from screen readers. The tree must be a single Tab stop: Tab reaches one row and the next Tab leaves the tree, and the delete buttons are out of the Tab order, named "Delete ". The workspace has enough files for the tree to scroll: the scrolling container must not be a Tab stop of its own (Firefox made it one), and with focus on the container itself an arrow key must move to the tab-stop row and Home/End to the ends; Enter there must enter the tree too, never answer a visible tool approval card (with nothing focused, Enter still does). A mouse click on blank tree space focuses the container, and an arrow key then enters the tree. An auto-repeated Enter or Space on a row must not open or toggle it. The focused row must keep a solid outline under forced colors. Up/Down, Home and End move between rows without wrapping; Right expands a folder and then enters it; Left goes to the parent and collapses; focus stays on the toggled folder across the re-render, and a second Right while a slow listing loads must not collapse the folder again. An empty folder shows an inert placeholder row that keeps focus across a re-render. Enter on a file opens its preview exactly once and Space toggles a folder. A background re-render must keep the tab stop and never move focus; the end-of-turn loadDir('.'), which renders once without folder listings and again with them, must leave focus on a nested row it was on, while a key pressed between the two renders wins. Folder listings in these refresh checks wait on deterministic barriers (a wrapped fetch) instead of timers. The carried position must survive a folder listing that renders the tree in between, and must give way to any action on the row the partial render fell back to: moving off it and back, Right to expand it, a click on it, or its context menu. Keys the tree ignores (Ctrl alone, PageDown, a page shortcut) do not count. Focus that left the tree in the gap (Shift+Tab, or moved directly) is not taken back, but the tab stop still returns to the nested row. With two overlapping refreshes, in either completion order, the first one that shows the row again restores it once. That also holds when the newer refresh's partial render has lost the fallback row too, and when the first refresh to complete failed to load its listing. A refresh that is abandoned (the tree generation moved on), or that refreshes a new tree generation, never carries the old tree's position. When a row and both its neighbours disappear (its folder collapsed), focus goes to the nearest folder above it. A mouse click on a row makes it the tab stop. Delete on a row asks for confirmation: cancelling keeps the file with focus back on the row, confirming removes it and moves focus to the next row, also for two deletes in a row while a folder is expanded. Keys typed into the inline rename input (Home, End, arrows, Space, Enter) must stay in the input; Enter there renames without opening anything and leaves focus on the renamed row. When the tree empties (an empty folder), focus moves to the Files tab and the container drops its tree role and name. Run it locally with python tests/browser_file_tree_keyboard.py; add --screenshots DIR to write the Files tab with keyboard focus on a row at 1440x900 and 390x844.

Public conversation lifecycle gate

tests/browser_conversation_lifecycle.py adds a public deterministic multi-row lifecycle gate. It drives the real composer and real WebUI server in Chromium, while a localhost-only fixture supplies reasoning, tool, process, and final/error events through the existing Hermes Gateway Runs API. The gate now covers both normal and terminal-error proof-matrix rows, asserting semantic activity during live streaming, after settlement, and after hard reload, including transcript-backed activity_scene_v1 persistence and zero unexpected browser errors. It uses isolated temporary state and no provider credentials.

pip install -r requirements.txt playwright
python -m playwright install --with-deps chromium

# Normal-path deterministic conversation lifecycle gate.
python tests/browser_conversation_lifecycle.py

# Terminal-error lifecycle gate (new row in the proof matrix).
LIFECYCLE_SCENARIO=terminal-error python tests/browser_conversation_lifecycle.py

# Historical ID-linked transcript hydration row.
python tests/browser_historical_transcript_hydration.py

To certify that the gate catches its target failure, the test owns an opt-in mutation that drops the browser's Anchor-scene persistence request. This command must fail at the hard-reload boundary:

LIFECYCLE_TEST_BITE=drop-anchor-persistence \
  python tests/browser_conversation_lifecycle.py

# Terminal-state-specific mutation bite: remove terminal row from persisted scene
# so hard reload cannot recover terminal status.
LIFECYCLE_SCENARIO=terminal-error \
LIFECYCLE_TEST_BITE=drop-terminal-anchor-row \
  python tests/browser_conversation_lifecycle.py

# Historical-hydration mutation: corrupt one persisted tool-result link so the
# strict Anchor projection must fail instead of claiming the legacy transcript.
HISTORICAL_HYDRATION_TEST_BITE=break-tool-link \
  python tests/browser_historical_transcript_hydration.py

The dedicated Conversation lifecycle (informational) workflow keeps the existing proof rows (normal, terminal-error, and historical-transcript-hydration) non-blocking while the public matrix expands. The Chromium reconnect-scene-redraw row does not allow failures: it exercises the real loadSession reconnect path and fails the workflow on a regression. Required merge checks remain a maintainer-controlled repository setting. The maintainer's private QA harness remains broader; later public slices will add cancellation, compression, and recovery coverage.

Approval first-click gate

tests/browser_approval_first_click.py covers the approval card's transport-id identity (#7091). It drives the real showApprovalForSession, respondApproval, and dismissApprovalCard in Chromium against a real WebUI server on isolated state, and seeds approvals through the loopback-only /api/approval/inject_test hook:

  • S1: a stale transport id on the rendered card still resolves on the first click.
  • S2: a queued successor A to B never inherits A's click; B needs a fresh click.
  • S3: dismiss with a stale id re-renders the head first and does not resurrect it.
  • S4: a successor that never rendered must produce no /api/approval/respond request at all.
  • S5: two queued approvals with identical content (same command, description and patterns, different request_id) are still distinct identities: clicking A posts nothing, B stays pending, and only a fresh click resolves B. Identical content alone must never let a click answer the approval the user never saw.
pip install -r requirements.txt playwright
python -m playwright install chromium
python tests/browser_approval_first_click.py

Set APPROVAL_ARTIFACT_DIR to keep the screenshots and server log. The approval-first-click row in the conversation lifecycle workflow is blocking, so a regression in the response-id reconciliation fails CI instead of being swallowed.

The same identity rules are pinned headlessly in tests/test_gateway_yolo_webui_compat.py: an entry with no request_id and no producer token fails closed when the head's transport id differs (no respond POST), still answers when the transport id matches (the server-minted id is its own proof, so the card cannot re-render forever), and the id-equality short-circuit still respects the post-await session fence for both respond and dismiss.

Active-session reconnect redraw gate

tests/browser_reconnect_scene_redraw.py is an opt-in deterministic browser gate for reconnecting to a running session with a large Anchor activity scene. It uses an isolated temporary server/home and fixture SSE events—no agent, provider credentials, or production state. By default it checks Chromium and WebKit, desktop and 390px viewports, and all three activity display modes:

pip install playwright
python -m playwright install chromium webkit
python tests/browser_reconnect_scene_redraw.py

TOOL_COUNT, BROWSERS, and MODES narrow the matrix. MEASURE_BASELINE=1 records an unoptimized baseline without enforcing the redraw ceiling; METRICS_FILE saves JSON metrics and SCREENSHOT_DIR saves generated-fixture screenshots. This gate tests page reconstruction, journal-cursor resume, and subsequent fixture SSE updates. It does not test a real provider/network or PWA service-worker cache behavior.

Streaming reader intent

While a response is still streaming, scroll upward with a trackpad or wheel to read earlier content, including a small scroll gesture immediately after a live render. Subsequent streamed content must not pull the reader back to the bottom. Use the jump-to-latest control to resume following the live tail; after that, new streamed content should remain visible at the bottom.

The authoritative behavior contract — including the input-tail re-pinning rules (scrolling back down to the tail you were aiming at re-pins immediately, even while the stream keeps growing) and the transcript's overscroll suppression — lives in docs/architecture/transcript-auto-follow-scroll.md. Verify it per that document's manual checklist across wide desktop, ordinary laptop width, and narrow/mobile viewport widths (touch: swipe up releases follow, swipe back down to the tail re-pins, and no bottom-edge vibration is visible while pinned during streaming), matching the responsive-state expectations in docs/UIUX-GUIDE.md.

Automated regression coverage for this section: tests/test_fast_stream_shrink_clamp_unpin.py, tests/test_issue5637_stale_anchor_guard.py (the test_live_render_queue_* ownership tests), tests/test_2111_ios_pwa_bottom_scroll_stutter.py, and tests/test_mobile_layout.py (the .messages overscroll suppression).

tests/test_static_js_runtime_lint.py runs this automatically when eslint is present and skips gracefully (clear message) when it isn't — so environments without the node toolchain aren't blocked, while the release gate (which installs eslint) enforces it.

To widen the guard, fix the pre-existing intentional hits first (as of 2026-05-30: no-dupe-keys ×92 i18n locale-fallback, no-func-assign ×2 panel override, no-redeclare ×1) then promote the rule into the config.


How to Use This Document

Each test has:

  • SETUP: what to do before the test
  • STEPS: numbered actions to perform
  • EXPECT: what you should see (pass criteria)
  • FAIL: what a failure looks like

Work through sections in order. Each section builds on the previous.


Section 1: Initial Load and Empty State

T1.1: Fresh Load Shows Empty State

SETUP: Clear localStorage (DevTools > Application > Local Storage > delete hermes-webui-session) or open in incognito. STEPS:

  1. Navigate to http://localhost:8787 EXPECT:
  • Dark background
  • Sidebar begins directly with the icon tab row; there is no dedicated branding header
  • Center area shows "What can I help with?" heading with suggestion buttons
  • Session list in sidebar is empty or shows existing sessions
  • Sidebar footer shows a single "Hermes WebUI" control-center button
  • No session is highlighted active
  • Send button is present but there is no input focus by default FAIL: Page shows error, blank white screen, or auto-creates a new session without user action.

T1.2: Suggestion Buttons Work

SETUP: T1.1 complete, no active session. STEPS:

  1. Click "What files are in this workspace?" suggestion button EXPECT:
  • A new session is created automatically (since none existed)
  • The text "What files are in this workspace?" appears as the user message
  • Thinking dots appear below the user message
  • After a few seconds, Hermes responds FAIL: Button does nothing, error appears, or page crashes.

Section 2: Session Management

T2.1: Create New Session via + Button

SETUP: Any state. STEPS:

  1. Click the "+ New conversation" button in the sidebar EXPECT:
  • A new session named "Untitled" appears highlighted in the session list
  • The center area shows the empty state ("What can I help with?")
  • The + button is the ONLY way to create a session (no auto-create on load) FAIL: Multiple sessions created, error thrown, or empty state not shown.

T2.2: Send a Message and See Response

SETUP: Active session exists. STEPS:

  1. Click in the message input at the bottom
  2. Type: "Say hello in exactly three words"
  3. Press Enter (not Shift+Enter) EXPECT:
  • User message appears immediately in chat
  • Thinking dots (three animated dots) appear below
  • Send button becomes disabled (grayed out)
  • A red stop button appears in the composer footer while the turn is running
  • Within 10-30 seconds, Hermes responds with a three-word greeting
  • Thinking dots disappear
  • Send button re-enables and the stop button disappears
  • Session title in sidebar updates to reflect the first message FAIL: Message never appears, thinking dots never go away, Send button stays disabled forever.

T2.3: Shift+Enter Creates Newline (Does Not Send)

SETUP: Active session, input focused. STEPS:

  1. Click the message input
  2. Type "Line one"
  3. Press Shift+Enter
  4. Type "Line two" EXPECT:
  • Two lines of text appear in the input box
  • No message is sent (no user message appears in chat) FAIL: Message sent on Shift+Enter.

T2.4: Reload Restores Session

SETUP: A session exists with at least one exchange (user + assistant). STEPS:

  1. Note the session title and last message content
  2. Reload the page (Cmd+R or F5) EXPECT:
  • The same session loads automatically (no empty state)
  • All messages from before the reload are visible
  • Session title in topbar and sidebar matches what it was before FAIL: Session lost on reload, empty state shown, or messages missing.

T2.5: Delete Active Session

SETUP: At least two sessions exist. One is active. STEPS:

  1. Hover over the active session in the sidebar (trash icon appears)
  2. Click the trash icon on the active session EXPECT:
  • A "Conversation deleted" toast appears at the bottom for ~3 seconds
  • The deleted session disappears from the sidebar list
  • The next most recent session automatically loads (or empty state if none remain)
  • NO new session is auto-created FAIL: Session not removed, new session auto-created, error shown, or wrong session loaded.

T2.6: Delete Non-Active Session

SETUP: At least two sessions exist. Session B is not active. STEPS:

  1. Hover over a session that is NOT currently active
  2. Click its trash icon EXPECT:
  • Toast "Conversation deleted" appears
  • That session disappears from list
  • Currently active session remains active and unchanged FAIL: Active session changes, multiple sessions deleted, or error.

T2.7: Delete Last Session Shows Empty State

SETUP: Exactly one session exists. STEPS:

  1. Delete that session via the trash icon EXPECT:
  • Session list is empty
  • Center area shows "What can I help with?" empty state
  • No session is auto-created FAIL: New session created, error thrown, or UI breaks.

Section 3: Model Selection

T3.1: Model Dropdown Shows All Options

SETUP: Any active session. STEPS:

  1. Look at the composer footer: to the right of the attach/mic controls there is a model dropdown
  2. Click the dropdown to expand it EXPECT:
  • Provider groups visible: OpenAI, Anthropic, Other
  • OpenAI group: GPT-5.4 Mini, GPT-4o, o3, o4-mini
  • Anthropic group: Claude Sonnet 4.6, Claude Sonnet 4.5, Claude Haiku 3.5
  • Other group: Gemini 2.5 Pro, DeepSeek V3, Llama 4 Scout FAIL: Only 2 options visible, no groups, or missing models.

T3.2: Model Dropdown Reflects Active Conversation

SETUP: Active session. STEPS:

  1. Change model dropdown to "Claude Sonnet 4.6" EXPECT:
  • The composer footer dropdown stays on "Claude Sonnet 4.6"
  • Sending the next message uses that session model rather than an older one from another conversation STEPS (continued):
  1. Change model to "Gemini 2.5 Pro" EXPECT:
  • The dropdown updates to "Gemini 2.5 Pro"
  • Switching away and back to the conversation restores the same model in the footer selector FAIL: Dropdown shows the wrong active model after a session switch, or sending uses a stale model.

T3.2a: Reasoning Effort Reflects Active Conversation

SETUP: Two sessions using the same reasoning-capable model. STEPS:

  1. In session A, select Low reasoning effort.
  2. In session B, select High reasoning effort.
  3. Switch A → B → A using the sidebar.
  4. Repeat at desktop width and at a narrow/mobile width using the mobile composer configuration action.
  5. Reload the page on each session and send a turn. EXPECT:
  • The reasoning chip/action reads Low in session A and High in session B after every switch and reload.
  • The next turn in each session uses that session's restored effort.
  • The model chip remains unchanged when both sessions use the same model. FAIL: The reasoning control keeps the previously viewed session's value, resets after reload, or the next turn uses a stale effort.

Repeat with different models: use a fast model with High/XHigh/Max in session A and a flagship model with Low in session B, selecting efforts supported by each model. Both the model and reasoning controls must restore together on desktop and narrow/mobile after A → B → A and reload. Capture before/after screenshots of both sessions for PR review.

Configuration regressions are covered by tests/test_session_reasoning_effort.py: new-session model/effort defaults honor an external HERMES_CONFIG_PATH for root. With request-local context set to a named profile, a root/external config override must not replace that profile's model or effort; an override inside its own home still applies. Gateway legacy and runs API requests use the named session profile's reasoning default when no stored override exists. An explicit session override wins over both the named and process/root profile values. With distinct root/named Gateway URLs and keys, the initial request's URL, Authorization header, and retained stream endpoint must all belong to the session's profile, matching the endpoint used for reattachment, Stop, and approval replies while the stream holds it. (Once that entry is cleaned up, Stop and approval fall back to the ambient endpoint, as on master.)

Same-chat ordering is covered by tests/test_reasoning_effort_save_race.py too: pick High then Low in one chat with the first save delayed. Low must not be sent until High settles, and the chip must end on Low. If the newest save fails, the chip must re-read the stored value.

Delayed-save regressions are covered by tests/test_reasoning_effort_save_race.py. With a throttled connection, change A's effort through the dropdown or /reasoning high, then switch to B before the save returns. B must keep its own effort after the response and routine topbar sync; returning to A must fetch its saved effort. Repeat on desktop and mobile, and with a model, provider, or profile change while the save is pending. A save in an unchanged context must still update both desktop and mobile labels, even if an older reasoning GET returns afterward.

T3.3: Context Badge Shares Footer Space Cleanly

SETUP: Active session with at least one completed response. STEPS:

  1. Look at the right side of the composer footer EXPECT:
  • A compact circular context badge appears next to the send button when usage data is available
  • The number in the center shows the used percentage
  • Hovering or focusing the badge shows a tooltip with percent used, token count, auto-compress threshold, and estimated cost when available
  • The model dropdown remains usable without overlapping the send button or pushing controls out of view FAIL: Linear meter still shown, tooltip missing/incomplete, controls overlap, or footer wraps in a broken way.

Section 4: File Upload

T4.1: Click-to-Attach Opens File Picker

SETUP: Active session. STEPS:

  1. Click the paperclip icon in the composer footer EXPECT:
  • OS file picker dialog opens
  • Accepted types filter visible (images, text, PDF, common code files) FAIL: Nothing happens, error thrown.

T4.2: Attach a Text File and Send

SETUP: Have a small .txt or .py file ready to upload. STEPS:

  1. Click the paperclip, select the file
  2. File chip appears in the composer tray above the input
  3. Type "What is in this file?" in the input
  4. Press Enter EXPECT:
  • Upload progress bar briefly appears
  • User message shows the message text plus a file badge with the filename
  • Hermes responds describing or reading the file content FAIL: Upload fails, file badge never appears, Hermes does not mention the file.

T4.3: Drag and Drop a File

SETUP: Active session, a file ready on your desktop. STEPS:

  1. Drag a file from Finder/Explorer over the composer area EXPECT:
  • Blue dashed border and "Drop files to upload to workspace" overlay appear STEPS (continued):
  1. Drop the file EXPECT:
  • File chip appears in the tray
  • Overlay disappears FAIL: No drag visual feedback, file not accepted, error on drop.

T4.4: Paste Screenshot from Clipboard

SETUP: Take a screenshot (Cmd+Shift+4 on Mac, saves to clipboard). STEPS:

  1. Click in the message input
  2. Press Cmd+V (paste) EXPECT:
  • An image file chip appears in the tray: "screenshot-{timestamp}.png"
  • Status bar briefly shows "Image pasted: screenshot-..." FAIL: Nothing pasted, error, or raw binary data appears in input.

T4.5: Remove a File from Tray

SETUP: At least one file in the attach tray. STEPS:

  1. Click the X button on a file chip in the tray EXPECT:
  • That file is removed from the tray
  • If it was the only file, tray collapses FAIL: File not removed, error.

T4.6: Inline Audio Attachment Editor with Variable Speed

SETUP: Active session, an audio file ready locally (.mp3, .wav, .m4a, .ogg, or .flac). STEPS:

  1. Attach the audio file with the paperclip or drag/drop
  2. Confirm the tray shows an audio media chip, then send the message
  3. In the sent user message, press Play on the inline audio player
  4. Click 0.5×, 1.25×, 1.5×, and 2× speed buttons EXPECT:
  • The audio renders inline in the chat instead of only as a download/file badge
  • Native audio controls are visible and usable
  • The clicked speed button becomes active and playback speed changes immediately
  • Download/open behavior for non-media files is unchanged FAIL: Audio only downloads, no speed buttons appear, or speed buttons do not affect playback.

T4.7: Inline Video Attachment Editor with Variable Speed

SETUP: Active session, a video file ready locally (.mp4, .mov, .webm, or .m4v). STEPS:

  1. Attach and send the video file
  2. In the sent user message, play the inline video
  3. Switch among 0.75×, 1×, 1.5×, and 2× speed controls EXPECT:
  • The video renders inline, contained within the message width
  • Native video controls are visible and usable
  • Speed selection updates the video playbackRate without reloading the media FAIL: Video only shows a generic badge, overflows the chat column, or speed controls fail.

Section 5: Workspace File Browser

T5.0: Panel Is Closed By Default

SETUP: Active session with workspace set. EXPECT:

  • Right workspace panel is hidden on initial load
  • Center chat column uses the freed width
  • "Files" toggle is visible in the topbar FAIL: Right panel starts open without any browsing or preview action.

T5.1: File Tree Loads When Files Panel Is Opened

SETUP: Active session with workspace set. STEPS:

  1. Click the "Files" toggle in the topbar EXPECT:
  • Right panel shows "WORKSPACE" header
  • File tree lists files and directories in the workspace
  • Directories have folder icons
  • Files have type-appropriate icons (camera for images, notepad for markdown, etc.) FAIL: Right panel is blank, error, or all files show generic icon regardless of type.

T5.2: Navigate Into a Directory

SETUP: Workspace has at least one subdirectory. STEPS:

  1. Click a directory name in the file tree EXPECT:
  • File tree updates to show contents of that directory
  • A ".." or breadcrumb is NOT shown (current behavior: flat navigation) FAIL: Click does nothing, error, or entire page breaks.

T5.3: Preview a Code File

SETUP: Workspace has a .py or .js or .txt file. STEPS:

  1. Click the file name in the tree EXPECT:
  • Right panel switches from file tree to preview area
  • File path shown at top with file extension badge (gray)
  • File contents shown as monospace text (raw code)
  • File tree is hidden, preview is visible FAIL: Nothing happens, binary gibberish shown, crash.

T5.4: Close Preview Returns to File Tree

SETUP: T5.3 complete, preview is showing. STEPS:

  1. Click the X button in the panel header EXPECT:
  • Preview closes
  • If the panel auto-opened for that preview, the entire right panel closes again
  • If the panel was manually opened for browsing first, the file tree is visible again
  • Preview area is hidden
  • Reopening the same file shows fresh content (no stale cached text) FAIL: X button does nothing, panel stays stuck open, or the file tree does not reappear after manual browse mode.

T5.5: Preview an Image File (Sprint 2)

SETUP: Upload a PNG, JPG, or any image file to the workspace, OR the workspace already contains one. STEPS:

  1. Click an image file (e.g. .png or .jpg) in the file tree EXPECT:
  • Preview area shows the actual image rendered inline (NOT a blob of bytes or placeholder)
  • Image is centered, fits within the panel width
  • Path bar shows "image" badge in blue
  • Image maintains aspect ratio FAIL: Raw binary text displayed, broken image icon, error message, or nothing happens.

T5.5b: Preview Audio/Video Files Inline

SETUP: Workspace contains at least one audio file (.mp3, .wav, .m4a) and one video file (.mp4, .mov, .webm). STEPS:

  1. Click the audio file in the workspace file tree
  2. Play it and select 1.5× or 2× speed
  3. Close preview, then click the video file
  4. Play it and select 0.75× or 1.25× speed EXPECT:
  • Audio/video open in the workspace preview panel instead of downloading immediately
  • Path badge shows audio or video
  • Native media controls and the variable-speed buttons are visible
  • Video scales to the preview panel without overflowing FAIL: Browser downloads the media immediately, raw binary appears, or speed controls are missing/broken.

T5.5c: Preview PDF Files Inline

SETUP: Workspace contains at least one .pdf file. STEPS:

  1. Click the PDF file in the workspace file tree
  2. Use the browser/PDF viewer scroll and zoom controls if available
  3. Click "Open in browser" as a fallback EXPECT:
  • PDF opens in the workspace preview panel instead of downloading immediately
  • Path badge shows pdf
  • PDF iframe fills the preview area
  • "Open in browser" opens the same raw file endpoint in a new tab FAIL: Browser downloads the PDF immediately, raw binary appears, or the preview panel is blank without an open fallback.

T5.6: Preview a Markdown File (Sprint 2)

SETUP: Workspace has a .md file (or create one: upload a file named README.md with some markdown content). STEPS:

  1. Click the .md file in the file tree EXPECT:
  • Preview shows formatted, rendered markdown (NOT raw text with asterisks)
  • Headings render as large bold text
  • bold renders as bold, italic as italic
  • Bullet lists render as actual list items
  • Code blocks render in monospace with dark background
  • Path bar shows "md" badge in gold FAIL: Raw markdown text with asterisks/hashes shown, or no preview at all.

T5.7: Markdown Preview Renders Tables (Sprint 2)

SETUP: Upload or create a .md file with a table like:

Name Value
foo bar
STEPS:
  1. Click the file in the file tree EXPECT:
  • Table renders as an actual HTML table with borders
  • Column headers (Name, Value) are bold/highlighted
  • Data rows alternate subtle background FAIL: Table displayed as raw pipe-separated text.

T5.8: Refresh Files Button

SETUP: Active session, workspace has files. STEPS:

  1. Click the "Files" refresh button in the sidebar bottom actions EXPECT:
  • File tree reloads
  • If a file was added externally, it now appears FAIL: Error, spinner never stops, tree clears without reloading.

Section 6: Workspace Path

T6.1: Change Workspace Path

SETUP: Active session. STEPS:

  1. Click the workspace path display in the sidebar bottom (shows current path)
  2. A prompt dialog appears
  3. Enter a new valid path (e.g. /tmp)
  4. Click OK EXPECT:
  • Workspace chip in topbar updates to show the last segment of the new path
  • File tree refreshes to show files at the new path
  • Next message sent uses the new workspace FAIL: Dialog does not appear, path not saved, error on invalid path.

Section 7: Tool Approval

T7.1: Dangerous Command Shows Approval Card

SETUP: Active session with a test-workspace (NOT a production directory). STEPS:

  1. Type: "Run the command: rm -rf /tmp/hermes_test_delete_me"
  2. Send the message EXPECT:
  • Thinking dots appear
  • An orange/red approval card appears above the composer: "Dangerous command - approval required"
  • The card shows the command text
  • The card shows the pattern description (e.g. "recursive delete [recursive_delete]")
  • Four buttons: Allow once, Allow this session, Always allow, Deny FAIL: No card appears, agent executes without asking, page crashes.

T7.2: Deny Approval Blocks the Command

SETUP: T7.1 complete, card is showing. STEPS:

  1. Click "Deny" EXPECT:
  • Approval card disappears
  • Agent responds with a message indicating the command was denied/blocked
  • No file was deleted FAIL: Command executes despite deny, card stays up, error.

T7.3: Allow Once Executes the Command

SETUP: Create a safe test: type "Run: touch /tmp/hermes_approval_test.txt" STEPS:

  1. Send the message
  2. When approval card appears, click "Allow once" EXPECT:
  • Approval card disappears
  • Agent continues and reports the command ran successfully
  • Verify: open a terminal and run: ls /tmp/hermes_approval_test.txt FAIL: Command blocked after Allow once, card stays, error.

Section 8: Transcript Download

T8.1: Download Conversation as Markdown

SETUP: A session with at least 2 messages (1 user + 1 assistant). STEPS:

  1. Click the "Hermes" button in the sidebar footer
  2. In the Control Center modal, click "Transcript" EXPECT:
  • Browser downloads a .md file named hermes-{session_id}.md
  • Opening the file shows the conversation in markdown format:

    user

    (message text)

    assistant

    (response text) FAIL: No download triggered, file is empty, file is corrupted JSON instead of markdown.

T8.2: Create and Revoke a Public Share Link

SETUP: A session with at least 2 visible messages (1 user + 1 assistant). STEPS:

  1. Click the "Hermes" button in the sidebar footer
  2. In the Conversation section, click "Share" EXPECT:
  • A public /share/<token> page opens in a new tab
  • The link is copied to the clipboard
  • The Conversation section meta line shows that a public share is active
  • The shared page uses the current Hermes theme/skin and shows only a read-only transcript snapshot FAIL: No link opens, the page requires login unexpectedly, or the shared page exposes workspace/profile/live controls.

STEPS: 3. Return to the app and click "Stop sharing" 4. Confirm the revoke dialog EXPECT:

  • A toast confirms the link was revoked
  • Reopening the old share URL shows an unavailable/not found state
  • The active-share status disappears from the Conversation section FAIL: The old link still loads the transcript, or the session still appears as publicly shared after revocation.

Section 9: Reconnect Banner (Sprint 1 - B4/B5)

T9.1: Reconnect Banner After Mid-Stream Reload

NOTE: This test requires deliberate timing. Best done with a slow/long agent request. SETUP: Active session. STEPS:

  1. Send a message that will take a while (e.g. "Write me a 500-word short story")
  2. While thinking dots are showing (within the first 5 seconds), reload the page (Cmd+R) EXPECT:
  • Page reloads and restores the session
  • A gold/amber banner appears near the top: "A response may have been in progress..."
  • Two buttons on the banner: "Dismiss" and "Reload"
  • Clicking "Reload" fetches fresh messages from server
  • Clicking "Dismiss" removes the banner FAIL: No banner shown, page crashes, banner appears on normal reloads with no in-flight request.

Section 10: Multi-Session and Concurrent Behavior

T10.1: Switch Sessions While Response Is Loading

SETUP: Active session, agent running (thinking dots visible from a previous message). STEPS:

  1. While thinking dots are showing, click a DIFFERENT session in the sidebar EXPECT:
  • The new session loads cleanly (its messages show)
  • The Send button for the NEW session is NOT disabled (it's not busy)
  • The original session's response is still being generated in the background
  • Clicking back to the original session shows the thinking dots still running
  • When the original request finishes, its messages update correctly FAIL: New session shows busy state, switching breaks messages, response lands in wrong session.

T10.2: Multiple Sessions in List (Up to 30)

SETUP: Create enough sessions to have at least 5 in the sidebar. EXPECT:

  • Sessions listed most-recently-updated first
  • Long titles truncate with "..." and do not overflow the sidebar width
  • Hover shows the trash icon on any session FAIL: Titles overflow sidebar, order is wrong, trash icon never appears.

Section 11: Visual and Layout Checks

T11.1: Right Panel Hidden on Small Screens

STEPS:

  1. Resize browser window to below 900px width EXPECT:
  • Right panel (workspace) disappears
  • Chat area expands to fill the full width FAIL: Right panel overlaps chat or causes horizontal scroll.

T11.2: Sidebar Hidden on Very Small Screens

STEPS:

  1. Resize browser window to below 640px width EXPECT:
  • Left sidebar disappears
  • Chat area takes full width FAIL: Sidebar causes layout overflow or blocks chat.

T11.3: Structured Log Output

SETUP: SSH access to the server. STEPS:

  1. In a terminal: tail -f ~/.hermes/webui/bootstrap-8787.log (or tail -f ~/.hermes/webui.log when launched through ctl.sh)
  2. In browser: perform any action (load page, send message, click file) EXPECT:
  • Log entries appear in terminal as JSON: {"ts":"...","method":"GET","path":"/health","status":200,"ms":0.1}
  • Every request produces one log line
  • Status codes are correct (200 for success, 400 for bad requests) FAIL: No log output, log shows Apache-style text instead of JSON, log file not created.

Section 12: Error Handling

T12.1: Send Button Disabled When Busy

SETUP: Message is sending (thinking dots visible). EXPECT:

  • Send button is visually grayed out
  • Stop button is visible in the composer footer
  • Pressing Enter does NOT send another message
  • Clicking Send button does nothing FAIL: Multiple messages sent while one is in flight.

T12.2: Upload Failure Shows Status

SETUP: Active session. STEPS:

  1. Try to attach a file larger than the configured upload limit (20MB by default; overridden by HERMES_WEBUI_MAX_UPLOAD_MB if set) EXPECT:
  • Status bar shows an error message about file size or the upload is rejected
  • The chat is not broken (can still send messages) FAIL: Uncaught error, page crashes, or no feedback given.

T12.3: File Preview for Binary Non-Image

SETUP: Workspace has a .zip or .bin file. STEPS:

  1. Click the binary file in the file tree EXPECT:
  • Code preview shows some text (may be replacement characters for binary content)
  • OR a "File too large" or "Could not open file" error in the status bar
  • Page does NOT crash FAIL: Browser freezes, crash, or security issue.

Automated Test Coverage Reference

These behaviors are verified by pytest (run: ./scripts/test.sh tests/ -v):

Sprint 1 tests (test_sprint1.py):

  • Server health, session CRUD (create/load/update/delete/sort)
  • B11 footgun fix (/api/session 400 on missing ID)
  • Multipart parser: text file, binary PNG
  • HTTP upload: success, too large, no file field, bad session
  • Approval API: pending, inject+deny, inject+session-approve
  • Stream status endpoint
  • File listing, path traversal block

Sprint 2 tests (test_sprint2.py):

  • GET /api/file/raw: PNG, JPEG, SVG content-types
  • GET /api/file/raw: path traversal blocked, missing file 404
  • GET /api/file: markdown content returned as text
  • GET /api/file: markdown with table content preserved
  • GET /api/list: image and markdown files appear in directory listing

Manual-only tests (not covered by automation):

  • All browser rendering tests (T5.5, T5.6, T5.7 -- visual verification)
  • T7.1-T7.3 -- tool approval card (requires live agent execution)
  • T9.1 -- reconnect banner timing
  • T10.1 -- concurrent session switching
  • T11.1, T11.2 -- responsive layout
  • T11.3 -- log output verification
  • All visual/CSS checks

Claude Browser Agent Instructions

If you are a Claude agent with browser access, follow these instructions:

  1. Navigate to http://localhost:8787 (assumes SSH tunnel is active from your Mac).
  2. Execute tests in order. For each test: a. Follow SETUP instructions. b. Perform each STEP using browser tools (click, type, navigate). c. Use browser_vision or browser_snapshot to verify EXPECT conditions. d. Record PASS or FAIL with a brief note on what you observed.
  3. For tests requiring file uploads: use the browser's file picker; you may need to create test files in /tmp first via terminal.
  4. For T7.x (approval tests): the agent running inside Hermes needs to detect a dangerous command. Ask Hermes to "run: rm -rf /tmp/test_hermes_approval" and watch for the card. The actual rm will not run in a safe test workspace.
  5. Skip T9.1 (reconnect banner) unless you can precisely time a page reload during an active SSE stream.
  6. Report results as a checklist at the end.

Last updated: Sprint 2, March 30, 2026 Server version: v0.4 (server.py in webui-mvp/) Run automated tests: ./scripts/test.sh tests/ -v


Section 13: Sidebar Panel Navigation (Sprint 3)

T13.1: Four Tabs Visible in Sidebar

EXPECT:

  • Four tabs at top of sidebar: Chat, Tasks, Skills, Memory (with icons)
  • Chat tab is active/highlighted by default on load FAIL: Only one section visible, no tabs shown.

T13.2: Tab Switching Preserves Chat State

STEPS:

  1. Send a message, get a response (so chat has content)
  2. Click the "Tasks" tab
  3. Click the "Chat" tab EXPECT:
  • When on Tasks tab: session list disappears, cron list appears
  • When back on Chat: full conversation is still there, session list returns
  • Send button still works after switching back FAIL: Messages lost, session list blank, Send button broken.

Section 14: Tasks Panel (Cron Viewer) (Sprint 3)

T14.1: Tasks Tab Shows Cron Jobs

STEPS:

  1. Click the "Tasks" tab in the sidebar EXPECT:
  • A list of scheduled jobs appears
  • Each job shows its name and a status badge (active/paused/error/off)
  • At least one job visible ("Morning Crypto Update" or similar) FAIL: Empty list, loading spinner forever, error message.

T14.2: Expand a Job Row

STEPS:

  1. Click a job name/row in the Tasks panel EXPECT:
  • Row expands to show: schedule string, prompt text (truncated), action buttons
  • "Run now" button (blue), "Pause" or "Resume" button
  • Last output section showing timestamp and content from the last run FAIL: Click does nothing, no expansion, buttons missing.

T14.3: Pause and Resume a Job

STEPS:

  1. Expand an active job
  2. Click "Pause" EXPECT:
  • Toast: job paused
  • Job list reloads, status badge changes to "paused"
  • Button changes to "Resume" STEPS (continued):
  1. Click "Resume" EXPECT:
  • Toast: job resumed
  • Status badge returns to "active" FAIL: Status doesn't change, error toast.

T14.4: Last Output Shows Real Content

SETUP: At least one job has run at least once. STEPS:

  1. Expand a job that has run EXPECT:
  • Last output section shows a timestamp (e.g. "2026-03-30_16-00-37")
  • Content preview of the last run output (first ~600 chars) FAIL: "(no runs yet)" shown even though job has run, or content is garbled.

Section 15: Skills Panel (Sprint 3)

T15.1: Skills Tab Shows Categorized List

STEPS:

  1. Click the "Skills" tab EXPECT:
  • A search box at the top
  • Skills grouped by category with folder icons and count (e.g. "autonomous-ai-agents (4)")
  • Individual skill items with name and short description excerpt FAIL: Loading forever, empty list, uncategorized blob.

T15.2: Search Filters Skills

STEPS:

  1. Click the Skills tab
  2. Type "github" in the search box EXPECT:
  • List narrows to only skills matching "github" in name, description, or category
  • Categories with no matches are hidden STEPS (continued):
  1. Clear the search box EXPECT:
  • Full list returns FAIL: Search does nothing, list disappears entirely.

T15.3: Click Skill Opens SKILL.md in Right Panel

STEPS:

  1. Click the Skills tab
  2. Click any skill name (e.g. "dogfood") EXPECT:
  • The right workspace panel switches to preview mode
  • The skill's SKILL.md content renders as formatted markdown
  • Path bar shows the skill name with gold "skill" badge
  • Headings, bold, lists all render correctly (not raw asterisks) FAIL: Nothing happens in right panel, raw markdown text shown, error.

Section 16: Memory Panel (Sprint 3)

T16.1: Memory Tab Shows Personal Notes

STEPS:

  1. Click the "Memory" tab EXPECT:
  • Two sections: "My Notes" and "User Profile"
  • Each section has a last-modified timestamp in the header
  • Content renders as formatted markdown (not raw text) FAIL: Blank, loading forever, error, raw text with § symbols.

T16.2: Memory Content is Accurate

STEPS:

  1. Open Memory tab
  2. Check a fact you know is in memory (e.g. your Pacific Time preference) EXPECT:
  • The fact appears in the correct section (User Profile or My Notes) FAIL: Wrong content shown, different user's data, empty even though memory exists.

Section 17: Bug Fix Verification (Sprint 3)

T17.1: B6 - New Session Inherits Workspace

SETUP: Active session with workspace changed to a non-default path (e.g. /tmp). STEPS:

  1. Click + New conversation while workspace is set to /tmp EXPECT:
  • New session shows /tmp in the workspace chip and path display
  • File tree shows files from /tmp FAIL: New session resets to default test-workspace.

T17.2: B10 - Tool Events Replace Thinking Dots

SETUP: Send a message that will trigger tool use (e.g. "What files are in /tmp?"). STEPS:

  1. Watch the chat area carefully after sending EXPECT:
  • Thinking dots appear immediately
  • When first tool fires: dots disappear, replaced by a compact "Running terminal..." row
  • When first token arrives: tool row disappears, streaming text begins
  • NOT: thinking dots AND "Running..." AND streaming text all visible at once FAIL: Thinking dots stay while tool runs, or multiple rows stacked confusingly.

T17.3: B14 - Cmd/Ctrl+K Creates New Chat

STEPS:

  1. Press Cmd+K (Mac) or Ctrl+K (Windows/Linux) while on the Chat tab EXPECT:
  • A new "Untitled" session is created
  • Empty state shown, input focused
  • Does NOT work if a request is in-flight (Send is disabled) FAIL: Nothing happens, browser intercepts shortcut for its own purpose, crash.

Automated Test Coverage (Updated Sprint 3)

Sprint 3 tests (test_sprint3.py) - 21 tests:

  • Cron API: list, required fields, output, pause/resume validation, run nonexistent
  • Skills API: list, required fields, content for known skill, name required
  • Memory API: both files returned, string types, mtime keys present
  • Input validation: session/update, session/delete, chat/start require fields; chat/start requires message; session/update unknown ID returns 404
  • B6: new session with workspace param sets it correctly

Manual-only (not covered by automation):

  • T13.x - T16.x: all visual panel rendering tests
  • T17.1-T17.3: bug fix verification (B6/B10/B14)
  • All previous manual tests from Sections 1-12

Last updated: Sprint 3, March 30, 2026 Total automated tests: 48/48 Run: ./scripts/test.sh tests/ -v


Section 18: Source Relocation Verification (Sprint 4)

T18.1: UI Loads and CSS Renders Correctly After Relocation

STEPS:

  1. Open http://localhost:8787 EXPECT:
  • Dark background, correct colors, sidebar visible
  • Open DevTools Network tab: verify style.css loads from /static/style.css (not inline)
  • No CSS errors in console FAIL: Plain unstyled HTML, white background, console errors about missing stylesheet.

Section 19: Session Rename (Sprint 4)

T19.1: Double-Click to Rename a Session

SETUP: At least one session in the sidebar. STEPS:

  1. Double-click on a session title in the sidebar EXPECT:
  • The title text is replaced by an editable input field, pre-selected
  • Input has a blue border style
  • Sidebar click does NOT navigate away (click is stopped) FAIL: Nothing happens, navigation fires, input not focused.

T19.2: Enter Commits the Rename

STEPS (continued from T19.1):

  1. Clear the input and type "My Renamed Session"
  2. Press Enter EXPECT:
  • Input disappears, replaced by the new title text
  • Sidebar shows "My Renamed Session"
  • If this was the active session, topbar title also updates immediately
  • Page reload: title persists FAIL: Title reverts, topbar doesn't update, enter not handled.

T19.3: Escape Cancels the Rename

STEPS:

  1. Double-click a session to start editing
  2. Type some changes
  3. Press Escape EXPECT:
  • Input disappears, original title restored (no change) FAIL: Title changed despite Escape, crash.

T19.4: Blur (Click Away) Commits the Rename

STEPS:

  1. Double-click a session, type a new name
  2. Click somewhere else on the page (not the input) EXPECT:
  • New title is committed (same as pressing Enter) FAIL: Title reverts on blur.

Section 20: Session Search (Sprint 4)

T20.1: Search Box Filters Sessions

SETUP: Multiple sessions with different titles (including at least one you renamed in T19). STEPS:

  1. Verify the Chat tab is active in the sidebar
  2. Type part of a known session title in the "Filter conversations..." box EXPECT:
  • List updates live as you type, showing only matching sessions
  • Non-matching sessions disappear
  • No network request (filtering is instant, client-side) FAIL: All sessions shown regardless, search causes page reload, error.

T20.2: Clear Search Restores Full List

STEPS (continued):

  1. Clear the search input EXPECT:
  • Full session list returns immediately FAIL: List stays filtered after clearing.

T20.3: No Match Shows Empty List

STEPS:

  1. Type "zzznomatch9999" in the search box EXPECT:
  • Session list is empty (no items)
  • No error message, just empty FAIL: Error shown, crash, or unfiltered list still displayed.

Section 21: Workspace File Operations (Sprint 4)

T21.1: Delete Button Appears on File Hover

SETUP: Workspace has at least one file. STEPS:

  1. Hover over a file in the right panel file tree EXPECT:
  • A small trash icon appears on the right side of the file row
  • Hovering away hides it again FAIL: No icon ever appears, icon always visible (not hover-only).

T21.2: Delete a File with Confirmation

STEPS:

  1. Hover over a file and click its trash icon
  2. An in-app confirmation modal appears: "Delete [filename]?"
  3. Click OK EXPECT:
  • Toast: "Deleted [filename]"
  • File disappears from the tree
  • If the file was open in the preview panel, preview closes FAIL: File not deleted, no confirmation dialog, error.

T21.3: Cancel Delete Does Nothing

STEPS:

  1. Hover over a file and click its trash icon
  2. Click Cancel on the confirmation modal EXPECT:
  • File remains in the tree
  • No toast, no error FAIL: File deleted despite cancel.

T21.4: Create a New File

STEPS:

  1. Click the + button in the workspace panel header
  2. An in-app input modal appears: "New file name (e.g. notes.md):"
  3. Type "test-sprint4.md" and click OK EXPECT:
  • Toast: "Created test-sprint4.md"
  • File appears in the tree
  • File opens immediately in the preview panel
  • File is empty (no content) FAIL: Nothing happens, error, file not created.

T21.5: Create File Validates Name

STEPS:

  1. Click + for a new file
  2. Press Cancel or leave name empty EXPECT:
  • Nothing created, no error FAIL: Empty-named file created, crash.

Automated Test Coverage (Updated Sprint 4)

Sprint 4 tests (test_sprint4.py) - 20 tests:

  • Relocation: server health, static CSS served, unknown static 404
  • Session rename: success, persistence, truncation, missing fields, unknown ID
  • Session search: matches found, empty query, no results
  • File create: success, missing fields, duplicate rejected
  • File delete: success, missing file 404, path traversal blocked
  • Validation: /api/list and /api/file require session_id and path

Total automated: 68/68 passing.

Manual-only for Sprint 4:

  • T18.1: visual CSS verification
  • T19.1-T19.4: inline rename UX
  • T20.1-T20.3: live search UX
  • T21.1-T21.5: file operations UX


Section 22: Workspace Management (Sprint 5)

T22.1: Spaces Tab Shows Configured Workspaces

STEPS:

  1. Click the "Spaces" tab in the sidebar (folder icon) EXPECT:
  • A list of workspaces with name and path
  • At least the default workspace (test-workspace) listed
  • An "Add workspace path" input at the bottom
  • Each workspace has "Use" and X (remove) buttons FAIL: Empty panel, loading forever, error.

T22.2: Add a Valid Workspace Path

STEPS:

  1. Type "/tmp" in the add input and click + Add EXPECT:
  • "/tmp" appears in the list with name "tmp"
  • Toast: "Workspace added" FAIL: Error shown, path not saved, no feedback.

T22.3: Add an Invalid Path is Rejected

STEPS:

  1. Type "/this/path/does/not/exist" in the add input and click + Add EXPECT:
  • Status bar shows an error (e.g. "Path does not exist")
  • Path is NOT added to the list FAIL: Invalid path added, no error.

T22.4: Remove a Workspace

STEPS:

  1. Click the X button next to any non-default workspace
  2. Confirm the modal EXPECT:
  • Workspace disappears from the list
  • Toast: "Workspace removed" FAIL: Workspace stays, no confirmation, error.

T22.5: Topbar Workspace Chip is a Dropdown

STEPS:

  1. In any active chat session, look at the topbar right side
  2. Click the workspace chip (shows folder icon + workspace name + arrow) EXPECT:
  • A dropdown appears listing all configured workspaces
  • Current workspace is highlighted
  • A "Manage workspaces" link at the bottom FAIL: Nothing happens, no dropdown, error.

T22.6: Quick-Switch Workspace via Topbar

SETUP: At least two workspaces configured (add /tmp if needed via Spaces tab). STEPS:

  1. Click the workspace chip to open the dropdown
  2. Click a different workspace than the current one EXPECT:
  • Dropdown closes
  • Toast: "Switched to [name]"
  • Workspace chip in topbar updates to the new workspace name
  • File tree in right panel refreshes to show files in the new workspace
  • Current session is now using the new workspace FAIL: Workspace chip doesn't update, file tree unchanged, error.

T22.7: New Session Inherits Last Used Workspace

SETUP: Switch to a non-default workspace (e.g. /tmp) via the topbar dropdown. STEPS:

  1. Click + New conversation EXPECT:
  • New session's workspace chip shows the same workspace you last switched to (/tmp)
  • File tree shows files from /tmp FAIL: New session defaults back to test-workspace.

Section 23: Copy Message to Clipboard (Sprint 5)

T23.1: Copy Icon Appears on Hover

SETUP: A chat session with at least one message. STEPS:

  1. Hover over any chat message (user or assistant) EXPECT:
  • A small clipboard icon appears in the message header row (right side of "You" or "Hermes")
  • Icon is not visible when not hovering FAIL: No icon ever appears, always visible.

T23.2: Copy Puts Text in Clipboard

STEPS:

  1. Hover over an assistant message
  2. Click the clipboard icon EXPECT:
  • Icon briefly shows a check icon, then reverts to the copy icon
  • Paste (Cmd+V) elsewhere shows the full text of that message FAIL: No visual feedback, clipboard empty or wrong content.

Section 24: Inline File Editor (Sprint 5)

T24.1: Code File Opens in Read-Only Mode

STEPS:

  1. Click any .py, .js, or .txt file in the workspace file tree EXPECT:
  • File content shows in read-only monospace view
  • An Edit button with a pencil icon is visible in the preview path bar
  • Content is NOT editable (clicking in it does nothing) FAIL: Content immediately editable, no Edit button.

T24.2: Edit Button Enters Edit Mode

STEPS:

  1. Click the Edit button on a code file preview EXPECT:
  • Read-only view replaced by an editable textarea
  • Content of the file is pre-populated in the textarea
  • Button changes to "Save" with a disk icon FAIL: Nothing changes, button doesn't change.

T24.3: Save Writes Changes to Disk

STEPS:

  1. In edit mode, change some text
  2. Click the Save button EXPECT:
  • Read-only view returns, showing the updated content
  • Toast: "Saved"
  • Verify: refreshing the file tree and reopening the file shows the new content FAIL: Save does nothing, content reverts, error.

T24.4: Dirty Indicator Shows Unsaved Changes

STEPS:

  1. Enter edit mode on a file
  2. Make any change (type a character) EXPECT:
  • Button shows "Save*" with the disk icon still visible (asterisk indicates unsaved changes) FAIL: No asterisk, button stays as "Save".

T24.5: Markdown File Edit-Save Roundtrip

STEPS:

  1. Click a .md file in the workspace
  2. Click Edit
  3. Add a new line: "## Added by Sprint 5 test"
  4. Click Save EXPECT:
  • Save succeeds (toast)
  • Markdown view re-renders showing the new heading FAIL: Save fails, markdown not re-rendered.

Automated Test Coverage (Updated Sprint 5)

Sprint 5 tests (test_sprint5.py) - 18 tests:

  • Phase A: app.js served correctly
  • Workspace CRUD: list, add valid, add invalid path, add invalid dir, add duplicate, requires path, remove, rename, rename unknown
  • Last workspace tracking: updates on session/update, new session inherits last
  • File save: success, missing fields, nonexistent file 404, path traversal blocked
  • Session index: created after save, sessions sorted correctly

Total automated: 86/86 passing.

Manual-only for Sprint 5:

  • T22.1-T22.7: workspace UI (tabs, dropdown, switching, inheritance)
  • T23.1-T23.2: copy to clipboard UX
  • T24.1-T24.5: inline file editor UX

Last updated: Sprint 5, March 30, 2026 Total automated tests: 86/86 Run: ./scripts/test.sh tests/ -v Source: / | Static: static/style.css + static/app.js


Section 25: UI Polish Pass (Post-Sprint 5 Visual Audit)

These are visual regression checks. Take a screenshot after loading the UI and compare against each criterion below. A Claude browser agent can verify these with browser_vision.

T25.1: Sidebar Nav Tabs are Icon-Only

EXPECT:

  • Five icon-only tabs in the sidebar nav row: message, clock, book, brain, folder
  • No text labels visible by default (text removed to prevent overflow)
  • Hovering a tab shows a tooltip with the label (Chat/Tasks/Skills/Memory/Spaces)
  • Active tab has a blue underline, icon brighter blue
  • All five icons fit in the sidebar width without clipping FAIL: Text labels showing alongside icons causing overflow, "Spaces" tab cut off.

T25.2: Message Role Labels are Softer

EXPECT:

  • "You" and "Hermes" labels appear in slightly muted blue/gold (not full-brightness)
  • Labels use Title Case not ALL CAPS
  • Role icons are circles (not squares) with a subtle border
  • The role label area does not visually overpower the message content below FAIL: Bright gold "HERMES" and blue "YOU" in caps drawing eye away from content.

T25.3: Code Blocks Have a Connected Language Header

EXPECT:

  • When a code block has a language, the header bar is connected (no gap) to the code
  • Header has a small colored dot on the left and the language name
  • Background: slightly lighter than the code body to distinguish it FAIL: Header floats above the code block with visible gap.

T25.4: Send Button Has Depth

EXPECT:

  • Send button has a subtle gradient (lighter at top, slightly darker at bottom)
  • Hover: button shifts very slightly upward (1px transform)
  • Visual distinction from the blue link/chip color FAIL: Send button is same flat blue as all other blue elements.

T25.5: Session List Shows Date Groups

EXPECT:

  • Sessions grouped under "Today", "Yesterday", "Earlier" headers
  • Headers are small, all-caps, muted gray
  • Active session has a blue left border accent FAIL: No grouping, flat list, no visual hierarchy.

T25.6: Empty State Logo is Distinct

EXPECT:

  • The "H" logo on the empty state is a frosted-glass circle outline style (blue tint)
  • NOT the same orange/red gradient as the sidebar header logo
  • They should look different so it's clear they're two different things FAIL: Both logos look identical.

T25.7: New Conversation Button is Blue-Tinted

EXPECT:

  • The "New conversation" button has a subtle blue background tint
  • Blue-colored text (not plain white/muted)
  • Feels clickable and primary (not the same style as the secondary sm-btn buttons) FAIL: Button looks same as other secondary buttons.

T25.8: Suggestion Buttons Slide on Hover

EXPECT:

  • On the empty state, hovering a suggestion button shifts it slightly right (2px)
  • Border turns blue on hover
  • Subtle background tint on hover FAIL: No hover movement, generic hover state.

T25.9: Toast Notification is Premium

EXPECT:

  • Toast appears at bottom center with blur/frosted-glass background
  • Subtle shadow behind the toast
  • Toast slightly floats up (translateY) when appearing FAIL: Plain flat dark box, no blur, no movement.

T25.10: Composer Input Has Glow on Focus

EXPECT:

  • Clicking in the composer/message input shows a blue glow ring around the box
  • (box-shadow: 0 0 0 3px rgba(124,185,255,0.08))
  • Border also brightens to a stronger blue FAIL: Only border color change, no glow ring.

Section 26: Resizable Panels (Sprint 6)

T26.1: Sidebar Can Be Resized by Dragging

STEPS:

  1. Hover over the right edge of the left sidebar (between sidebar and chat area) EXPECT:
  • Cursor changes to col-resize (double-headed horizontal arrow)
  • A subtle blue glow appears on the edge STEPS (continued):
  1. Click and drag the edge to the right EXPECT:
  • Sidebar widens in real time as you drag
  • Chat area compresses to compensate
  • Minimum width ~180px, maximum ~420px
  • Releasing the mouse commits the new width
  • Hard-refreshing the page restores the saved width FAIL: Cursor doesn't change, panel doesn't resize, width not saved.

T26.2: Workspace Panel Can Be Resized by Dragging

STEPS:

  1. Hover over the left edge of the right workspace panel
  2. Drag left to narrow, drag right to widen EXPECT:
  • Panel resizes within 180-500px range
  • Width persists across page reload (stored in localStorage) FAIL: Panel not resizable.

Section 27: Cron Job Create (Sprint 6)

T27.1: New Job Button Opens Form

STEPS:

  1. Click the Tasks tab in the sidebar
  2. Click the "+ New job" button at the top of the Tasks panel EXPECT:
  • A form slides in below the header with:
    • Name input (optional)
    • Schedule input (cron expression or natural language)
    • Prompt textarea
    • Delivery target dropdown
    • Create job and Cancel buttons FAIL: Nothing happens, no form appears.

T27.2: Create a Job Successfully

STEPS:

  1. Open the create form (T27.1)
  2. Fill in: Name "Test Job", Schedule "every 999h", Prompt "Say hello"
  3. Click Create job EXPECT:
  • Form closes
  • Toast: "Job created"
  • New job appears in the cron list with status "active" FAIL: Error shown, job not created, form stays open.

T27.3: Invalid Schedule Shows Error

STEPS:

  1. Open the create form
  2. Leave schedule empty or type "not_a_schedule"
  3. Click Create job EXPECT:
  • Error message appears below the form: "Schedule is required" or parse error
  • Form stays open (not dismissed) FAIL: Form closes without feedback, generic error.

T27.4: Cancel Closes Form Without Creating

STEPS:

  1. Open the create form, fill in some fields
  2. Click Cancel EXPECT:
  • Form closes
  • No new job created
  • No toast FAIL: Job created, form doesn't close.

Section 28: Session JSON Export (Sprint 6)

T28.1: JSON Export Button Downloads File

SETUP: Active session with at least a few messages. STEPS:

  1. Click the "Hermes" button in the sidebar footer
  2. In the Control Center modal, click "JSON" EXPECT:
  • Browser downloads a file named hermes-{session_id}.json
  • Opening the file shows valid JSON with: session_id, title, messages array, workspace, model, created_at, updated_at
  • messages array contains objects with role and content fields FAIL: No download triggered, file is empty, file is not valid JSON.

T28.2: Escape Cancels File Editor

SETUP: Open a text file in the workspace right panel (click any .py or .md file). STEPS:

  1. Click "Edit" button in the preview path bar
  2. Make some changes in the textarea
  3. Press Escape EXPECT:
  • Textarea disappears, read-only view returns
  • Original content is shown (changes discarded)
  • File on disk is unchanged (verify by closing and reopening the file) FAIL: Escape does nothing, changes are saved, crash.

Automated Test Coverage (Updated Sprint 6)

Sprint 6 tests (test_sprint6.py) - 16 tests:

  • Phase E: HTML served from static/index.html, server.py has no inline HTML
  • Phase D: approval/respond requires session_id and valid choice; file/raw validates session
  • Cron create: requires prompt, requires schedule, invalid schedule returns 400, success
  • Session export: requires session_id, unknown session 404, valid JSON with session_id
  • Resize: static files contain resize handles and resize JS logic

Total automated: 106/106 passing.

Manual-only for Sprint 6:

  • T26.1-T26.2: resize drag UX
  • T27.1-T27.4: cron create form UX
  • T28.1: JSON export download
  • T28.2: Escape from file editor

Static: static/index.html + static/style.css + static/app.js


Section 29: Cron Edit and Delete (Sprint 7)

T29.1: Edit Button Opens Inline Form

SETUP: At least one cron job exists. Tasks tab open. STEPS:

  1. Click a cron job to expand it
  2. Click the "Edit" (pencil) button EXPECT:
  • An inline form appears inside the expanded cron body
  • Name, schedule, and prompt fields are pre-filled with current values FAIL: Nothing happens, new form not shown.

T29.2: Save Edit Updates the Job

STEPS (continued from T29.1):

  1. Change the name field to "Renamed Job"
  2. Click Save EXPECT:
  • Form closes, toast "Job updated"
  • Job header shows new name FAIL: Save fails, name unchanged.

T29.3: Delete Button Removes the Job

SETUP: A cron job you can safely delete (or a test job created for this). STEPS:

  1. Expand the job, click "Delete"
  2. Confirm the modal EXPECT:
  • Toast: "Job deleted"
  • Job disappears from the list FAIL: Job stays, no confirmation dialog.

Section 30: Skill Create and Edit (Sprint 7)

T30.1: New Skill Button Opens Form

STEPS:

  1. Click the Skills tab
  2. Click "+ New skill" button EXPECT:
  • A form appears with name, category, and content textarea fields FAIL: Nothing happens.

T30.2: Create a Skill and See it in List

STEPS:

  1. Fill in: Name "test-ui-skill", Content "--- name: test-ui-skill description: UI test. tags: [test]

Test"

  1. Click Save skill EXPECT:
  • Toast "Skill created", form closes
  • Skill appears in the skills list FAIL: Error, skill not in list.

T30.3: Cancel Closes Form Without Creating

STEPS:

  1. Open new skill form, fill some fields, click Cancel EXPECT:
  • Form closes, no skill created FAIL: Skill created, form stays.

Section 31: Memory Inline Edit (Sprint 7)

T31.1: Edit Button Opens Memory Edit Form

STEPS:

  1. Click the Memory tab
  2. Click the "Edit" (pencil) button in the header EXPECT:
  • An edit form appears below the memory panel with a textarea pre-filled with MEMORY.md content FAIL: Nothing happens, no form.

T31.2: Save Writes Changes

STEPS:

  1. In edit mode, add a line to the textarea
  2. Click Save EXPECT:
  • Toast "Memory saved", form closes
  • Memory panel reloads showing the updated content FAIL: Save fails, content unchanged.

T31.3: Cancel Discards Changes

STEPS:

  1. Open edit form, change content, click Cancel EXPECT:
  • Form closes, original content unchanged FAIL: Changes saved despite cancel.

Automated Test Coverage (Updated Sprint 7)

Sprint 7 tests (test_sprint7.py) - 19 tests:

  • Health: active_streams field, uptime_seconds field
  • Session search: empty query, content+depth params accepted, count returned
  • Cron update: requires job_id, unknown job 404
  • Cron delete: requires job_id, unknown job 404
  • Skill save: requires name, requires content, invalid name rejected, create+delete roundtrip
  • Skill delete: requires name, unknown skill 404
  • Memory write: requires section, requires content, invalid section, write+read roundtrip

Total automated: 125/125 passing.

Manual-only for Sprint 7:

  • T29.1-T29.3: cron edit/delete UX
  • T30.1-T30.3: skill create UX
  • T31.1-T31.3: memory edit UX


Section 32: Edit User Message + Regenerate (Sprint 8)

T32.1: Edit Icon Appears on Hover

SETUP: Active session with at least one user message. STEPS:

  1. Hover over any user message bubble EXPECT:
  • A pencil (edit) icon appears in the message header row, right side
  • Icon not visible when not hovering FAIL: No icon, always visible, wrong position.

T32.2: Click Edit Opens Textarea

STEPS:

  1. Hover over a user message and click the pencil icon EXPECT:
  • Message body is replaced by an editable textarea pre-filled with the original text
  • "Send edit" and "Cancel" buttons appear below
  • Textarea has a blue border glow (focused style) FAIL: Nothing happens, empty textarea, crash.

T32.3: Cancel Restores Original

STEPS (continued from T32.2):

  1. Make a change in the textarea
  2. Click Cancel EXPECT:
  • Original message text restored exactly
  • No messages sent, no API call FAIL: Original text lost, message sent.

T32.4: Escape Also Cancels

STEPS:

  1. Enter edit mode on a user message
  2. Press Escape EXPECT:
  • Textarea dismissed, original restored FAIL: Escape does nothing.

T32.5: Send Edit Truncates and Regenerates

STEPS:

  1. Click edit on a user message that has a response after it
  2. Change the text
  3. Click "Send edit" (or press Enter) EXPECT:
  • All messages after the edited message are removed
  • The edited text is sent as a new user message
  • Hermes streams a fresh response FAIL: Old messages remain, double messages, crash.

Section 33: Regenerate Last Response (Sprint 8)

T33.1: Retry Icon on Last Assistant Bubble Only

SETUP: Session with at least one complete exchange. EXPECT:

  • A retry (↻) icon appears on hover over the LAST assistant message only
  • Not on user messages
  • Not on older assistant messages FAIL: Icon on every message, or not on last.

T33.2: Regenerate Re-Runs Last User Message

STEPS:

  1. Hover the last assistant bubble and click the retry icon EXPECT:
  • The last assistant message is removed
  • The previous user message is re-sent
  • Hermes streams a new response FAIL: Both messages removed, wrong message sent, crash.

Section 34: Clear Conversation (Sprint 8)

T34.1: Clear Button Appears When Session Has Messages

SETUP: Session with at least one message. EXPECT:

  • The "Hermes" button is visible in the sidebar footer
  • Opening the Control Center shows a "Clear" action in the Conversation section
  • The Clear action is disabled when there is no active session or no messages FAIL: Button always visible, never visible.

T34.2: Clear Wipes Messages and Resets Title

STEPS:

  1. Click the "Hermes" button in the sidebar footer
  2. Click "Clear" in the Conversation section
  3. Confirm the modal EXPECT:
  • All messages disappear from the chat area
  • Empty state ("What can I help with?") reappears
  • Session title in sidebar resets to "Untitled"
  • Toast: "Conversation cleared"
  • Session still in the sidebar (not deleted) FAIL: Session deleted, messages remain, title not reset.

T34.3: Cancel Clear Does Nothing

STEPS:

  1. Click Clear, then click Cancel in the confirmation modal EXPECT:
  • All messages still present
  • No toast, no change FAIL: Messages cleared despite cancel.

Section 35: Syntax Highlighting (Sprint 8)

T35.1: Code Blocks Have Syntax Colors

SETUP: Ask Hermes something that produces a code response (e.g. "Show me a Python hello world"). EXPECT:

  • The code block has syntax-colored tokens (keywords in one color, strings in another)
  • NOT all plain white/gray monospace text
  • Dark background with Prism Tomorrow theme colors FAIL: All plain text, no colors, broken layout.

T35.2: Code in Workspace Preview Also Highlighted

SETUP: Open a .py or .js file in the workspace panel. EXPECT:

  • File content has syntax highlighting (Prism autoloader) FAIL: Plain monospace text only.

Automated Test Coverage (Updated Sprint 8)

Sprint 8 tests (test_sprint8.py) - 14 tests:

  • session/clear: requires session_id, unknown 404, wipes messages+resets title, returns compact
  • session/truncate: requires session_id, requires keep_count, unknown 404, returns messages array
  • Static file checks: app.js has editMessage, regenerateResponse, clearConversation, highlightCode
  • index.html: contains Prism CDN link, contains btnClearConv + clearConversation

Total automated: 139/139 passing.

Manual-only for Sprint 8:

  • T32.1-T32.5: edit message UX
  • T33.1-T33.2: regenerate UX
  • T34.1-T34.3: clear conversation UX
  • T35.1-T35.2: syntax highlighting visual

Last updated: Sprint 10 complete, March 31, 2026 Total automated tests: 177/177 Regression gate: tests/test_regressions.py (10 tests, one per introduced bug) Run: ./scripts/test.sh tests/ -v Source: / Modules: ui.js, workspace.js, sessions.js, messages.js, panels.js, boot.js (app.js deleted)


Section 36: Message Queue (Sprint 8 hotfix)

T36.1: Typing While Busy Queues the Message

SETUP: Active session, a response is currently streaming (thinking dots visible). STEPS:

  1. While Hermes is responding, type a new message and press Enter EXPECT:
  • Input clears immediately
  • A small toast appears: "Queued: [your message]"
  • A badge appears in the bottom-right: "1 message queued"
  • The current response continues uninterrupted FAIL: Message dropped silently, duplicate send triggered, error.

T36.2: Queued Message Sends Automatically After Response

STEPS (continued from T36.1):

  1. Wait for the current response to finish EXPECT:
  • As soon as the response completes, the queued message is automatically sent
  • Badge disappears
  • New thinking dots appear for the queued message FAIL: Queued message never sends, badge stays, double-send.

T36.3: Queue Badge Shows Count for Multiple Messages

STEPS:

  1. While busy, type and send two separate messages EXPECT:
  • Badge reads "2 messages queued"
  • They drain one at a time, each waiting for the previous response FAIL: Only first message queued, count wrong.

T36.4: Switch Session Clears Queue

STEPS:

  1. Queue a message in session A
  2. Click to session B before it drains EXPECT:
  • Queue badge disappears
  • The queued message does NOT fire in session B FAIL: Queued message fires in session B.

Section 37: Message Persists on Switch-Away (Sprint 8 hotfix)

T37.1: Sent Message Stays Visible After Switch-Away and Back

SETUP: Active session. STEPS:

  1. Send a message (thinking dots appear)
  2. Immediately click to a different session
  3. Click back to the original session EXPECT:
  • The user message you sent is still visible in the chat
  • Thinking dots are still animating
  • Session is still in busy state (Send button disabled)
  • When response arrives, it appears normally FAIL: User message gone, blank chat, response lands in wrong session.


Sections Added Post-Sprint 10 (Sprints 11-19)

The following features were added in Sprints 11-19 and need manual browser testing. Each has automated API-level tests in tests/test_sprint{N}.py.

Sprint 11: Multi-Provider Models

  • Open model dropdown. Verify models grouped by provider (OpenAI, Anthropic, Google, etc.)
  • If custom base_url configured in config.yaml, verify local models appear in dropdown.
  • Switch model. Send a message. Verify response uses selected model.

Sprint 12: Settings + Pin + Import

  • Click the "Hermes WebUI" button in the sidebar footer. Control Center overlay opens with vertical section tabs on the left.
  • Change default model, save. Restart server. Verify setting persisted.
  • Pin a session (star icon in hover overlay). Verify it floats to top of list.
  • Export session as JSON. Import it back. Verify messages restored.

Sprint 13: Alerts + Session QoL

  • Duplicate a session (copy icon in hover overlay). Verify "(copy)" title.
  • Browser tab title updates to active session name. Switch sessions — title changes.

Sprint 14: Visual Polish + Workspace Ops

  • Create a mermaid code block in a response. Verify diagram renders inline.
  • Send the same prompt twice so two replies contain an identical mermaid block. Verify both diagrams render (neither falls back to a mermaid code block), on desktop and at phone width, and again after a page reload.
  • Message timestamps visible next to role labels (hover for full date).
  • Double-click a file in workspace panel to rename. Enter saves, Escape cancels.
  • Create a folder via folder icon in workspace header.
  • Add #tag to session title. Verify tag chip appears in sidebar. Click to filter.
    • At 390px with touch input, the first tap filters without opening the conversation or moving the chip as the timestamp changes. Verify long-press still opens actions.
    • With a conversation's project picker open, click a tag on another conversation. The picker closes and the tag filter repaints immediately without opening that conversation.
    • Open the project context menu or composer model menu, then click a conversation title: the menu closes and the conversation opens once. Also check Enter/Space, J/K navigation, input-field protection, desktop hover, and keyboard focus.
  • Archive a session. Verify it disappears. Toggle "Show archived" to see it.

Sprint 15: Session Projects

  • Click "+" in project bar to create a project. Type name, Enter.
  • Click a project chip to filter sessions.
  • Session ⋮ menu → Move to project (long-press the row on touch) → assign via picker.
  • With a long project list, verify the picker stays within the visible viewport at desktop and narrow widths; + New project stays pinned at the bottom edge while the list scrolls inside the picker.
  • Keep the picker open while resizing the window or changing the mobile visual viewport (keyboard/browser chrome/zoom). Verify both horizontal edges and the height cap follow the visible area, including nonzero viewport offsets.
  • Scroll the session list while the picker is open: it must follow its row, then close when the trigger leaves the list's visible rectangle. Scrolling inside the picker must keep it open and preserve access to the final item.
  • Re-render/remove the owning row without resizing or scrolling: the picker must close immediately. Selection, outside click, and opening a replacement must also release its listeners, observer, and queued animation frame.
  • Automated geometry/lifecycle regression: ./scripts/test.sh tests/test_project_picker_viewport_position.py -q.
  • While the picker is open, trigger a list refresh between press and release (another conversation's pin or title update): the tap/click must still move the session to the pressed project. A remote rename must also paint immediately while the list is hovered or focused, with the picker kept.
  • Verify colored left border appears on assigned session.
  • Double-click project chip to rename. Right-click to delete.
  • Code blocks have a "Copy" button. Click → "Copied!" feedback.
  • Messages with 2+ tool cards show "Expand all / Collapse all" toggle.

Sprint 16: Sidebar Visual Polish

  • Session titles use full sidebar width (no truncated space for hidden icons).
  • Hover a session → a dotted actions trigger appears on the right.
  • Click the dotted trigger → a dropdown opens with pin, project, archive, duplicate, and delete actions.
  • All icons are monochrome SVGs (not emoji). Consistent across platforms.
  • Pinned sessions show small gold star inline. Unpinned = no star, full title width.
  • Active session has gold highlight (not blue).
  • Double-click to rename → session actions hide during rename.

Sprint 17: Workspace + Slash Commands + Send Key

  • Navigate into a subdirectory. Breadcrumb bar appears with clickable segments.
  • Up button in panel header navigates to parent. Hidden at root.
  • Type / in composer → autocomplete dropdown appears. Arrow keys navigate.
  • Type /help → lists all commands. /clear clears conversation. /model switches.
  • Settings panel: change send key to Ctrl+Enter. Verify Enter inserts newline.

Sprint 18: Thinking + Tree View + Preview Fix

  • View a file in workspace. Click a breadcrumb or folder → preview closes automatically.
  • Click a directory toggle arrow (▸) → expands in-place showing children.
  • Click again (▾) → collapses. Double-click navigates into it (breadcrumb view).
  • If model returns thinking blocks (Claude extended thinking), verify collapsible gold card appears above response.
  • Verify the thinking card has a tinted background, visible border, and rounded corners like a tool card, but in the gold thinking palette.
  • Open and close a thinking card. Verify the caret rotation and the content reveal both animate smoothly instead of snapping open.

UI Polish: Tool Card Disclosure Animation

  • Trigger a response with at least one completed tool call card.
  • Open and close the tool call card. Verify the caret rotates smoothly and the args/result section animates open and closed instead of appearing instantly.
  • If a turn has 2+ tool cards, use "Expand all / Collapse all" and verify the same smooth animation applies to every card in the group.

Sprint 19: Auth + Security

  • No password set: everything works as normal. No login page.
  • Set HERMES_WEBUI_PASSWORD=test env var. Restart. All pages redirect to /login.
  • Login page: minimal card, password field, "Sign in" button.
  • Enter correct password → redirected to /. Cookie set (24h).
  • Enter wrong password → error message, stay on login page.
  • Settings panel: set password via "Access Password" field. Auth activates.
  • "Sign Out" button visible when auth active. Click → redirected to /login.
  • API calls without auth cookie → 401 JSON response.
  • Check response headers: X-Content-Type-Options: nosniff, X-Frame-Options: DENY.

Sprint 20: Voice Input + Send Button

  • Mic button visible in composer (Chrome/Edge). Hidden in Firefox.
  • Tap mic → button turns red with pulse, "Listening..." indicator appears.
  • Speak → live transcription appears in textarea.
  • Stop speaking → auto-stops after ~2s silence. Text stays editable.
  • Tap mic again or Send → stops recording, sends text.
  • Type text, then tap mic → spoken text appends to existing text (doesn't replace).
  • Send button hidden when textarea is empty. Appears with pop-in animation when typing.
  • Send button is icon-only circle (no "Send" text label). Blue with glow.
  • Attach a file with no text → send button appears.
  • Send message → button disappears after textarea clears.
  • While agent is responding → send button hidden.

Touch attachment chooser

  • On a touch phone or tablet, Attach opens Take photo and Choose files with icons in portrait and landscape.
  • Tab out of the chooser, tap outside it, or press Escape to dismiss it. Selecting either option returns focus to Attach.
  • On a desktop or a tablet with a fine pointer, Attach opens the file picker directly and has no menu ARIA attributes.
  • Run ./scripts/test.sh tests/test_issue6942_mobile_camera_choice.py tests/test_issue6942_mobile_camera_choice_render.py -q for the focused keyboard, capability, and localized render matrix.

Sprint 21: Mobile Responsive + Docker

  • Open on mobile viewport (<640px): hamburger icon visible in topbar.
  • Tap hamburger → sidebar slides in from left with backdrop overlay.
  • Tap outside sidebar → closes. Tap a session → closes and loads session.
  • Sidebar top nav remains visible inside the mobile drawer; includes Chat/Tasks/Skills/Memory/Spaces/Profile tabs.
  • Tap "Tasks" in the drawer nav → Tasks panel opens in the sidebar drawer.
  • Tap "Chat" in the drawer nav → sidebar closes and chat is unobstructed in the main area.
  • Files button in topbar → right panel slides in from right.
  • No fixed mobile bottom nav; chat transcript and composer use the reclaimed vertical space.
  • All touch targets are at least 44px (session items, buttons, icons).
  • Desktop viewport (>640px): no hamburger or mobile overlay; desktop layout unchanged.
  • Docker: docker compose up -d starts server on port 8787.
  • Docker: session data persists across container restarts (named volume).

Sprint 22: Multi-Profile Support

  • Profile chip in topbar (purple accent). Click → dropdown with all profiles.
  • Dropdown shows gateway status dots, model info, skill count per profile.
  • Click a profile → switches; model dropdown, skills, memory, cron refresh.
  • "Manage profiles" link opens Profiles sidebar panel.
  • Profiles panel: cards with name, model, provider, skill count, API key status.
  • "Use" button switches profile. Delete button removes non-default profiles.
  • "+ New profile" form: name validation (lowercase + hyphens), clone config checkbox.
  • Create profile → appears in list and dropdown.
  • Delete profile → confirmation modal. Auto-switches to default if deleting active.
  • Attempt switch while agent busy → blocked with toast message.
  • With hermes-agent not installed → only default profile shown, graceful fallback.

Slash command parity (manual checklist)

For each batch-1 command, run via webui slash menu AND via hermes CLI in the same HERMES_HOME (when applicable) and verify identical effect.

  • /help — dropdown lists 25+ commands; selecting /help posts an assistant message listing them.
  • /new (and alias /reset) — starts fresh session.
  • /clear — clears current transcript display (webui-only meaning, distinct from CLI's "clear screen").
  • /title <name> — renames active session, topbar + sidebar update; /title alone shows current title.
  • /status — assistant message shows session_id, model, workspace, message count.
  • /usage — assistant message shows token counts; the "show token usage" setting is unchanged (toggle still in Settings panel).
  • /stop — interrupts a running stream; with no active stream toasts "No active task to stop."
  • /retry — removes last user+assistant exchange, refills composer with last user text, resends. Final transcript has only ONE copy of the resent message.
  • /undo — removes last user+assistant exchange; toast confirms; repeated until empty toasts "Nothing to undo."
  • /model <name> — switches model dropdown.
  • /personality — lists personalities; /personality <name> switches.
  • /skills [query] — lists matching skills.
  • /theme <name> — switches webui theme.
  • /workspace <name> — switches workspace.

Unknown / deferred:

  • /yolo, /reasoning, /voice, /branch, /insights, /debug, /reload, etc. — toast "Web UI 暂未实现该命令: /". MUST NOT be sent as plain text to the LLM.
  • /compact — toast "/compress is not available in the web UI yet — use the CLI for now." (was sending free text to LLM before this batch.)
  • Made-up command (e.g. /fhfajl) — fall through to send as text (existing behavior preserved for typos vs. real commands).

Bridged CLI sessions:

  • Open a CLI-bridged session in webui sidebar (if show_cli_sessions setting enabled).
  • /retry, /undo toast "该命令仅支持 Web UI 原生会话…" and do nothing.

Last updated: v0.51.792, July 1, 2026 Total automated tests collected: ~11,500 (run ./scripts/test.sh tests/ --collect-only -q for the exact current count) Regression gate: tests/test_regressions.py Run: ./scripts/test.sh Source: /

Media preview access errors (#7254)

Verify CSV, PDF and HTML previews at desktop and 390px widths, including light theme. HTTP 401/403/404 must show the escaped filename and localized error in diff-inline-error without a download link. Network/format failures keep their format-specific fallback and download link. A 401 directs the user to reload.

MEDIA boundary regression checks (#6923)

  • Bare local paths and remote path-only URLs preserve every trailing byte, including ., ,, ;, :, !, and ?; those bytes are ambiguous and may be part of the actual filename or URL. Punctuation detaches only when a matching Markdown or quote wrapper proves that it is outside the token.
  • Query and fragment values retain all punctuation, including punctuation-only values.
  • Render MEDIA:_, MEDIA:__, and MEDIA:*: these are local filenames. Matching empty wrappers such as **MEDIA:** must remain prose.
  • Recheck settled and safe/fade streaming output across callback boundaries. Automated coverage: renderer behavior, MEDIA consumer parity, and SMD stream tests.

Reset lineage against a real Agent checkout

For the current-master merge contract, also run ./scripts/test.sh tests/test_reset_lineage_master_integration.py -q. This disposable SQLite matrix checks the list, metadata and report readers together, including messaging resets without a session key, direct/origin identity, inherited ancestor markers, missing optional columns, and a canonical reset whose parent is unavailable. Explicit forks, tool children, malformed or conflicting markers, and cross-surface legacy links must remain children. For a known messaging session_reset parent, cross-surface links must also remain children when they carry a matching canonical reset marker. Same-source canonical resets still work after parent reopen or when the parent is absent. The gateway reopen/recompress cases must retain independent reset roots and separate transcripts rather than merely avoiding compression collapse.

tests/test_reset_lineage_agent_integration.py is opt-in because it imports a separate Hermes Agent checkout and its dependencies. It starts a credential-free subprocess with disposable home/state paths, exercises real SessionDB create/end/reopen calls and SessionStore.reset_session(), then checks WebUI's read-only projection and sidebar grouping. Only the historical clock is fixed. It does not send platform messages or run a model.

HERMES_WEBUI_TEST_REAL_AGENT=1 \
HERMES_WEBUI_AGENT_DIR=/path/to/hermes-agent \
HERMES_WEBUI_PYTHON=/path/to/hermes-agent/venv/bin/python \
  ./scripts/test.sh tests/test_reset_lineage_agent_integration.py -q -rxX

HERMES_WEBUI_TEST_REAL_AGENT=1 is the only opt-in. HERMES_WEBUI_AGENT_DIR also configures the normal WebUI runtime, so setting it alone never activates this module. With the flag, set both location variables explicitly. HERMES_WEBUI_PYTHON selects the Agent probe's interpreter, using the existing runtime override; point it at the environment with that checkout's dependencies installed (.venv/bin/python or venv/Scripts/python.exe are also valid layouts). The WebUI runner still uses its own repo .venv for pytest; this module does not start the shared WebUI HTTP test server. It neither installs Agent dependencies nor silently uses that interpreter for the probe. Its subprocess environment sets HERMES_DISABLE_LAZY_INSTALLS=1 so Agent bootstrap cannot install dependencies into the disposable home. Node must also be on PATH for the real sidebar checks.

Without HERMES_WEBUI_TEST_REAL_AGENT=1 the module skips, even when HERMES_WEBUI_AGENT_DIR is set. Once opted in, missing or invalid checkout/interpreter settings, missing dependencies, probe failures, and invalid probe output are fixture errors, not expected failures or skips. tests/test_reset_lineage_agent_fixture.py runs by default without an Agent installation and verifies this distinction against the marked test.

Verified Agent 8d91e48efdfd68437781fe5a23f5cd1d991dce9e preserves explicit branch/delegate/tool children and real reset successors, but still backfills _reset_from onto a markerless same-key legacy branch in this exact schedule: parent starts at 100, branch starts at 150, parent ends as branched at 160, reopens at 170, ends as session_switch at 200, and reopens at 210. WebUI then projects that branch as reset_successor. This is a known failing integration contract, represented by one strict, AssertionError-only xfail. The 2026-11-02 maintainer decision accepts shipping it with a release note and a separate Agent-side provenance issue; the failing contract itself remains visible. This full real-Agent check remains opt-in, so default CI does not detect an upstream fix by itself. Run it without expected-failure handling to see the unresolved assertion:

HERMES_WEBUI_TEST_REAL_AGENT=1 \
HERMES_WEBUI_AGENT_DIR=/path/to/hermes-agent \
HERMES_WEBUI_PYTHON=/path/to/hermes-agent/venv/bin/python \
  ./scripts/test.sh tests/test_reset_lineage_agent_integration.py \
  -k markerless_branch --runxfail -q

An Agent fix that makes the test pass produces strict XPASS, requiring removal of the xfail and revalidation of genuine legacy resets across later parent reopens. A timestamp-only WebUI workaround cannot recover provenance after the Agent has written the marker and cleared the parent's end fields.