Repository navigation
feat(daemon): support BSK_SESSION_IDLE and BSK_DAEMON_IDLE environment variables - #463
Open
legend91019 wants to merge 1 commit into
Open
legend91019 wants to merge 1 commit into
legend91019 wants to merge 1 commit into
Conversation
…t variables Make browser session idle timeout and daemon idle timeout configurable via environment variables BSK_SESSION_IDLE and BSK_DAEMON_IDLE. - Update StartArgs::resolved_session_idle() and resolved_daemon_idle() to fall back to environment variables. - Update ensure_daemon() to pass BSK_SESSION_IDLE and BSK_DAEMON_IDLE to auto-spawned background instances. - Update run_start() to resolve environment variables into StartArgs. - Add test coverage in crates/bsk-cli/tests/cli_parse.rs. - Document environment variables in crates/bsk-cli/skill/references/environment.md. Fixes Tencent#456
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #456.
Make browser session idle timeout and daemon idle timeout configurable via \BSK_SESSION_IDLE\ and \BSK_DAEMON_IDLE\ environment variables.
Currently, --session-idle\ and --daemon-idle\ are only available as CLI arguments on explicit \�sk daemon start\ /
estart\ invocations. When \�sk\ subcommands auto-spawn a background daemon via \ensure_daemon(), the defaults (\5m\ session idle, \10m\ daemon idle) are always used with no way for users, container environments, or persistent supervisors to configure them globally.
Changes
esolved_session_idle()\ and
esolved_daemon_idle()\ check \BSK_SESSION_IDLE\ and \BSK_DAEMON_IDLE\ respectively before falling back to \DEFAULT_SESSION_IDLE\ (\5m) and \DEFAULT_DAEMON_IDLE\ (\10m).
un_start()\ populates unset idle timeouts from the environment variables.
Validation