Skip to content

test: cover agent stdout noise, the delete chain, and last coverage tails - #3

Merged
danielglh merged 1 commit into
mainfrom
test/final-tails
Aug 27, 2026
Merged

test: cover agent stdout noise, the delete chain, and last coverage tails#3
danielglh merged 1 commit into
mainfrom
test/final-tails

Conversation

@danielglh

Copy link
Copy Markdown
Owner

Final layer of the coverage work from #2 — everything else was already at or above target.

New tests (server 84 → 91; line coverage 96.0% → 96.9%)

  • Agent stdout noise tolerance (process): OSC escape banners and multibyte non-JSON lines surface as protocol_line frames with control characters intact, malformed rpc_chunk metadata surfaces as protocol_error — and in both cases the bridge stays alive and the eventual ready frame still arrives. Untrusted agent output cannot take the bridge down.
  • Delete chain end-to-end (hardening, mockMode: false so filesystem deletion is real): DELETE /api/sessions/:id → the underlying omp session file and its artifacts directory are removed over HTTP; a session opened from the history browser (resumedFromHistory) keeps its pre-existing file while only the registry entry disappears.
  • Tails: static serving of a missing dist directory returns the build-me placeholder page; loadConfig warns (never crashes) on a group/world-readable or corrupt config.json.

Verification: bun run check green · 91 server + 57 web tests pass · coverage thresholds (server ≥93%, web ≥90%) pass locally and gate CI.

…tic tails

- process: non-JSON agent output (OSC banners, multibyte lines) surfaces as
  protocol_line noise and malformed rpc_chunk metadata as protocol_error —
  the bridge stays alive either way
- delete chain end-to-end over HTTP with mockMode off: DELETE /api/sessions/:id
  removes the underlying omp session file + artifacts, while a session opened
  from history keeps its pre-existing file
- static: missing dist directory serves the build-me placeholder page
- config: group/world-readable and corrupt config.json warn without crashing

Server suite: 84 → 91 tests; line coverage 96.0% → 96.9%.
@danielglh
danielglh merged commit f385ed0 into main Aug 27, 2026
1 check passed
@danielglh
danielglh deleted the test/final-tails branch August 27, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant