Skip to content

Fix bugs found during code audit#191

Open
phillip-kruger wants to merge 1 commit intoquarkiverse:mainfrom
phillip-kruger:claude
Open

Fix bugs found during code audit#191
phillip-kruger wants to merge 1 commit intoquarkiverse:mainfrom
phillip-kruger:claude

Conversation

@phillip-kruger
Copy link
Member

Logic bug, NPE, CPU spin, concurrency

  • Fix inverted condition in searchDocs() — extension filter was never sent to server
  • Add null guard in ChappieHotReplacementSetup.close() to prevent NPE on shutdown
  • Fix CPU spin in log streaming: remove inner while-loop, assign logTask for cancellation
  • Replace ex.printStackTrace() with LOG.error() in 3 config methods
  • Use shared static HttpClient instead of creating new one per request
  • Add .exceptionally() handler to fire-and-forget deleteChat() call
  • Synchronize config file reads/writes with configLock to prevent corruption
  • Include response body in HTTP error exception messages for debugging
  • Log actual image name and error in DevService fallback warning

- Fix inverted condition in searchDocs() — extension filter was never sent to server
- Add null guard in ChappieHotReplacementSetup.close() to prevent NPE on shutdown
- Fix CPU spin in log streaming: remove inner while-loop, assign logTask for cancellation
- Replace ex.printStackTrace() with LOG.error() in 3 config methods
- Use shared static HttpClient instead of creating new one per request
- Add .exceptionally() handler to fire-and-forget deleteChat() call
- Synchronize config file reads/writes with configLock to prevent corruption
- Include response body in HTTP error exception messages for debugging
- Log actual image name and error in DevService fallback warning

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@phillip-kruger phillip-kruger requested a review from a team as a code owner March 13, 2026 19:00
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