Skip to content

fix(tui): keep startup usable when config watch fails - #52788

Closed
opencode-agent[bot] wants to merge 1 commit into
devfrom
tui-config-watch-enospc
Closed

opencode-agent[bot] wants to merge 1 commit into
devfrom
tui-config-watch-enospc

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Closes #52776

The TUI watches the parent of the global cli.json to reload CLI settings across processes. When Linux refuses a new fs.watch (for example, exhausted inotify resources), the synchronous throw escaped ConfigProvider and crashed startup. Keep the loaded settings usable if the watch cannot start, and close/log a later watcher error. Live settings reload is disabled for that TUI process until restart; no project-wide watching behavior is changed.

Validation:

  • Reproduced the uncaught synchronous watch failure with a missing config directory; the TUI provider now renders with its initial config instead of throwing (22 focused tests pass).
  • bun typecheck from packages/tui passes.
  • Repository-wide bun run check is blocked by this host’s Node 18: oxlint’s TypeScript plugin and Astro require newer Node. This is unrelated to the change.

Requested by: @neriousy (Filip via Slack)

@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:28
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI crash: ENOSPC: no space left on device, watch '/home/davicompai/.config/opencode'

1 participant