Skip to content

fix: gate test_config behind cfg(test), guard profile keydown listener#395

Merged
intendednull merged 1 commit into
mainfrom
fix/test-config-keydown-331-347
Apr 26, 2026
Merged

fix: gate test_config behind cfg(test), guard profile keydown listener#395
intendednull merged 1 commit into
mainfrom
fix/test-config-keydown-331-347

Conversation

@intendednull
Copy link
Copy Markdown
Owner

Two small fixes from audit.

#331 TD-13 — test_config() live in prod module. Gate with #[cfg(test)]. Test artifact not reachable from release builds.
#347 GEN-04 — profile keydown listener fire Escape even when no profile open. Guard with is_some check. Prevents racing other Esc handlers.

Closes #331, closes #347


Generated by Claude Code

#331: WorkerConfig::test_config() was pub in the production module with
no cfg gate. Test artifact now only compiled in test builds.

#347: Profile keydown Escape listener fired unconditionally on every
keydown event site-wide. Guard now checks is_some before clearing, so
it only acts when a profile card is actually open.

https://claude.ai/code/session_01HzWjHTaoQ8EJ64foWr3Zv4
@intendednull intendednull merged commit dd0dae1 into main Apr 26, 2026
7 checks passed
@intendednull intendednull deleted the fix/test-config-keydown-331-347 branch April 26, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants