fix(dashboard): help assistant signs in, scan list follows a started scan, catalog controls readable #423

Merged
sharang merged 1 commits from feat/catalog-controls into main 2026-09-28 21:59:08 +00:00
Owner

What

  • Help Assistant: send_help_chat_message used a bare reqwest client with no token. The agent answered with an empty 401, which surfaced as "Failed to parse response: expected value at line 1 column 1". It now uses agent_request + json_or_error, so a refusal reads as a refusal.
  • Scan list: ScanRunList takes an optional started counter. The target page's "Prüfung starten" bumps it, and the list keeps polling until the new run appears as running (capped at 12 polls = 1 min).
  • Catalog controls:
    • new GET /api/v1/controls?ids= (max 50 ids) with controls::describe_master_controls, whose catalog is loaded once per process and not cached on failure;
    • on the finding page, "+N Kontrollen aus dem BreakPilot-Katalog" is now a <details> listing each control as MC-10056 + its first requirement;
    • the bare ids show while loading or when there's no catalog.

Tests

  • lookup::by_id (label + first requirement)
  • clippy (CI flags) on agent and dashboard (server/web); fmt

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

## What - **Help Assistant:** `send_help_chat_message` used a bare reqwest client with no token. The agent answered with an empty 401, which surfaced as "Failed to parse response: expected value at line 1 column 1". It now uses `agent_request` + `json_or_error`, so a refusal reads as a refusal. - **Scan list:** `ScanRunList` takes an optional `started` counter. The target page's "Prüfung starten" bumps it, and the list keeps polling until the new run appears as running (capped at 12 polls = 1 min). - **Catalog controls:** - new `GET /api/v1/controls?ids=` (max 50 ids) with `controls::describe_master_controls`, whose catalog is loaded once per process and not cached on failure; - on the finding page, "+N Kontrollen aus dem BreakPilot-Katalog" is now a `<details>` listing each control as `MC-10056` + its first requirement; - the bare ids show while loading or when there's no catalog. ## Tests - `lookup::by_id` (label + first requirement) - clippy (CI flags) on agent and dashboard (server/web); fmt 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-28 21:51:09 +00:00
fix(dashboard): help assistant signs in, scan list follows a started scan, catalog controls readable
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m52s
6746f2eb20
- The help assistant called the agent without the session's token; the
  agent refused it with an empty 401 that read as "Failed to parse
  response". It now goes through the agent client like every other call.
- The scan runs list only polled while a run was running or the history
  was empty, so a scan started next to finished runs never appeared
  until a reload. "Prüfung starten" now tells the list, which looks for
  the new run for up to a minute.
- "+N Kontrollen aus dem BreakPilot-Katalog" listed the ids only in a
  hover tooltip. GET /api/v1/controls?ids= describes master controls
  from the catalog (loaded once per agent process), and the finding
  page folds them out with their label and first requirement.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 99f0bb33e9 into main 2026-09-28 21:59:08 +00:00
Sign in to join this conversation.