Skip to content

Add capture event transport and server-side write classification#112

Open
jspahn80134 wants to merge 25 commits intobjones1:mainfrom
jspahn80134:main
Open

Add capture event transport and server-side write classification#112
jspahn80134 wants to merge 25 commits intobjones1:mainfrom
jspahn80134:main

Conversation

@jspahn80134
Copy link
Copy Markdown
Contributor

@jspahn80134 jspahn80134 commented Apr 22, 2026

Summary:

  • Removed tracked DB credential config and added ignored local config handling.
  • Added safe capture_config.example.json.
  • Added capture health/status reporting and /capture/status.
  • Added JSONL fallback when PostgreSQL capture fails.
  • Expanded capture event metadata for study analysis.
  • Made VS Code capture identity configurable through settings.
  • Added consent gating, path hashing, capture status UI, reflection prompts, and study lifecycle commands.
  • Fixed malformed --auth panic.
  • Added PostgreSQL/JSONL metrics exporter with timestamped CSV output.
  • Ignored generated capture metrics files.

Validation:

  • Ran extension build successfully with no errors.
  • Manually verified CodeChat Editor loads in Extension Development Host.
  • Manually verified session_start appears in CodeChat Capture output.

Update the ignored PostgreSQL integration test to assert the rich events schema columns and fix timestamp/JSONB parameter casts used by the capture insert path. Verified against the AWS PostgreSQL database with event_capture_inserts_rich_schema_event_into_db.
macOS CI occasionally delivered the loadfile acknowledgement just after the old two-second harness timeout. Increase the shared browser message wait to five seconds so test_client does not fail on that timing edge.
The first CI rerun passed the original test_client wait but exposed the same timing issue in test_client_updates while waiting for the autosave content update. Use the client response window as the shared browser test wait budget.
The overall browser tests share one WebDriver endpoint and were running concurrently inside the same test binary. This was causing test_client_updates to miss its autosave content update on CI, especially macOS/Safari. Guard the harness with a shared async mutex so each browser session runs in isolation.
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