Add: debugTrace build-time default + JSONL export schema#222
Merged
Conversation
Operators can now seed builds with the debug-trace recorder on by default (via `debugTrace: true` in the defaults override file), so CDP/Browserbase automation can pull the IDB-backed trace from a fresh session without a human flipping the popup toggle. Documents the export entry shape as a JSON Schema for downstream consumers. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
debugTracein the build-time defaults override file (alongsideoptionsButtonandrunOnInactiveTabs). Whentrue, freshchrome.storageseeds the debug-trace recorder enabled so the popup's Export button can dump a JSONL trace without a human flipping the toggle. Wired via a newEXTENSION_DEBUG_TRACE_DEFAULTbuild-time substitution, mirroring the existingoptions-button-toggle.ts/run-on-inactive-tabs.tspattern.extension/data/debug-trace.schema.json— JSON Schema (draft 2020-12) describing the union of entries emitted into the JSONL export, mirroring theDebugTraceEntryunion indetection-messages.ts. Linked from the README + install docs so downstream consumers can validate.docs/src/content/docs/install.mdupdated with the new reserved key and a pointer to the export schema. Example overrides file gets adebugTraceline so the knob is visible.Test plan
bun run check(extension/) — biome + eslint cleanbun run test(extension/) — full suite, 1885 tests pass, including 4 newloadDefaultOverridescases and 4 newdebugTraceStorageenv-default cases (mirrorsoptionsButtonStoragepattern)pre-commit runon touched docs/JSON — mdformat reflowed install.md once, then passed on re-runbun run build --defaults <{"debugTrace":true}>— verified the substituted bundle containsconst raw = "true";insideresolveDefault()and the storage seeded totruefor fresh installs; default build (no override) still seedsfalsedist/, open the popup on a fresh profile, confirm "Debug trace" checkbox starts ticked and exports JSONL🤖 Generated with Claude Code