Skip to content

Persist UI debug flag via explicit localStorage key#138

Draft
thezzisu with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-test-false-debug-logging
Draft

Persist UI debug flag via explicit localStorage key#138
thezzisu with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-test-false-debug-logging

Conversation

Copilot AI commented Jan 23, 2026

Copy link
Copy Markdown

UI debug logging was effectively disabled by a non-obvious, non-persistent localStorage toggle, making it difficult to enable debug tooling. This updates the UI to use a stable, explicit key so debug mode can be reliably toggled.

  • Debug flag storage
    • Switch debug flag to a clear, persisted localStorage key with default persistence.

Example:

const debug = useLocalStorage('aoi-debug', false, { writeDefaults: true })
Original prompt

Fix the "test:false" debug logging in the ui


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jan 23, 2026

Copy link
Copy Markdown

Deploying aoi with  Cloudflare Pages  Cloudflare Pages

Latest commit: e695e14
Status: ✅  Deploy successful!
Preview URL: https://d243b30d.aoi-b5x.pages.dev
Branch Preview URL: https://copilot-fix-test-false-debug.aoi-b5x.pages.dev

View logs

Copilot AI changed the title [WIP] Fix debug logging for test:false in UI Persist UI debug flag via explicit localStorage key Jan 23, 2026
Copilot AI requested a review from thezzisu January 23, 2026 15:20
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