Skip to content

fix(cli): stop viewer temp file deletion race with browser#5

Merged
dburks-svg merged 1 commit into
mainfrom
bench/deepseek-timeout-increase
May 19, 2026
Merged

fix(cli): stop viewer temp file deletion race with browser#5
dburks-svg merged 1 commit into
mainfrom
bench/deepseek-timeout-increase

Conversation

@dburks-svg
Copy link
Copy Markdown
Contributor

Summary

  • Remove the atexit cleanup handler in cmd_viewer() that deleted the HTML temp file immediately on process exit — before the browser had time to load it
  • The temp file now persists in the OS temp directory for natural cleanup
  • Fixes ERR_FILE_NOT_FOUND when opening the viewer on Windows

Test plan

  • Run python -m cli viewer and confirm the HTML opens in the browser with ledger data visible

…ds it

Remove the atexit cleanup handler that deleted the HTML temp file
immediately on process exit — before the browser had a chance to read it.
The file now persists in the OS temp directory for natural cleanup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dburks-svg dburks-svg merged commit 46e1918 into main May 19, 2026
3 checks passed
@dburks-svg dburks-svg deleted the bench/deepseek-timeout-increase branch May 19, 2026 07:42
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