Skip to content

fix(config): exclude secrets.json from config watcher restart trigger#373

Merged
Aaronontheweb merged 1 commit into
devfrom
claude-wt-slack-delivery-bugs
Mar 21, 2026
Merged

fix(config): exclude secrets.json from config watcher restart trigger#373
Aaronontheweb merged 1 commit into
devfrom
claude-wt-slack-delivery-bugs

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Collaborator

Summary

Fixes #372.

  • ConfigWatcherService watched both netclaw.json and secrets.json, so OAuth token refreshes (which write to secrets.json) triggered daemon restarts mid-session, killing active turns
  • Narrowed IsWatchedFile to only netclaw.json — secret changes are loaded on-demand and never require a restart
  • Removed the now-unnecessary secrets.json JSON validation from ApplyReload

Test plan

  • Existing ConfigWatcherServiceTests pass (9 tests)
  • New NonConfigFiles_AreNotWatched theory covers secrets.json, mcp-oauth-metadata.json, random.txt, and null
  • New NetclawJson_IsWatched confirms netclaw.json still triggers restart

…#372)

ConfigWatcherService watched both netclaw.json and secrets.json, so OAuth
token refreshes (which write to secrets.json) triggered daemon restarts
mid-session. Narrow IsWatchedFile to only netclaw.json — secret changes
are loaded on-demand and never require a restart.
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) March 21, 2026 21:05
@Aaronontheweb Aaronontheweb merged commit ceafb40 into dev Mar 21, 2026
3 checks passed
@Aaronontheweb Aaronontheweb deleted the claude-wt-slack-delivery-bugs branch March 21, 2026 21:12
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.

bug: OAuth token refresh triggers config-reload restart, killing active sessions

1 participant