Skip to content

feat(agent,web): surface traffic-capture-off notice in agent tool descriptions, setup, settings, and dashboard - #448

Merged
BaaRai merged 2 commits into
mainfrom
feat/traffic-capture-off-notice
Nov 21, 2026
Merged

BaaRai merged 2 commits into
mainfrom
feat/traffic-capture-off-notice

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

When traffic capture is off (default — unchanged), explicitly tell both agents and operators that capture is off and is required for provable HTTP findings.

Summary

  • Agent-facing tool descriptions (agent/finding_workflow.go, server/assembly.go):
    • Added agent.SetTrafficCaptureEnabled wired to pg.GetBool(settingTrafficCapture, false) in wireTools.
    • When traffic capture is off, reads the setting once per findingWorkflowTools pass and appends a concise notice to prove_goal and report_finding descriptions explaining that no HTTP traffic is being recorded, recorded findings stay visible, non-HTTP goals still close via observed tool_output facts, and traffic capture must be enabled in System settings to make HTTP findings provable.
    • Covered by TestFindingWorkflowToolsTrafficCaptureOffNotice (including single-read assertion).
  • Setup, Dashboard, and Settings UI (web/):
    • Setup (/setup): added a muted note explaining that traffic capture is off by default and can be enabled in System settings after setup if provable HTTP findings are needed.
    • Dashboard (/dashboard): updated the Traffic exchanges KPI card and System Status Traffic capture row when capture is off to explain that captured HTTP traffic is required for provable findings, linking to /system/settings.
    • System settings (/system/settings): added an amber callout inside the Traffic capture card when capture is off.
    • Added all 4 new keys to tr.json and zh-CN.json.
  • Default traffic_capture remains off (unchanged).

Verification

  • go vet ./agent ./server — PASS
  • go test -race -v -count=1 -run TestFindingWorkflow ./agent — PASS
  • go test -v -count=1 -run TestFindingWorkflow ./server (Postgres 16) — PASS
  • npm run test:i18n — PASS (2646 literal keys, 5/5 tests)
  • node node_modules/typescript/bin/tsc --noEmit — PASS

@BaaRai
BaaRai merged commit c65034c into main Nov 21, 2026
5 checks passed
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.

2 participants