Uh oh!
There was an error while loading. Please reload this page.
docs: add theme hot-reloading section with SIGUSR2 signal - #9208
docs: add theme hot-reloading section with SIGUSR2 signal#9208skylight74 wants to merge 1 commit into
Conversation
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #4879: feat: add theme hot-reload functionality Reason for concern: This PR appears to implement the actual theme hot-reload feature that PR #9208 is documenting. The current PR (#9208) is adding documentation for a feature that was implemented in PR #4879. You may want to check if:
|
There was a problem hiding this comment.
Pull request overview
This PR documents the previously undocumented theme hot-reloading feature that allows users to reload themes without restarting OpenCode by sending a SIGUSR2 signal to the process.
Changes:
- Added a new "Theme hot-reloading" section to the themes documentation
- Documented the
SIGUSR2signal behavior and its effects on theme reloading - Provided practical integration examples with dynamic theming tools like wallust
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
713fa63 to
539e7aeComparef1ae801 to
08fa7f7CompareClosing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Summary
Adds documentation for the undocumented theme hot-reloading feature using the
SIGUSR2signal.This is useful for users who:
Changes
SIGUSR2signal behaviorHow I verified it works
Discovered this feature by reading the source code in
packages/opencode/src/cli/cmd/tui/context/theme.tsxwhich contains:Tested by sending
pkill -USR2 -x opencodeafter modifying theme files - themes reload correctly.