Skip to content

feat: add var_default config option#370

Merged
ethanpailes merged 1 commit into
masterfrom
add-var-default-config
May 20, 2026
Merged

feat: add var_default config option#370
ethanpailes merged 1 commit into
masterfrom
add-var-default-config

Conversation

@ethanpailes
Copy link
Copy Markdown
Contributor

Issue Link

n/a

AI Policy Ack

Ack

This PR was:

  • mostly or completely vibe coded
  • mostly or completely meat coded
  • bit of both

I vibed the test.

Description

This patch adds a new var_default config option allowing users to set initial values for variables on daemon startup.

I want this because I want to be able to set a default workspace var so I can know that it is always safe to connect to {workspace}-edit and not have to worry about the daemon being in a state where workspace is not yet set. This is possible to hack together today with a series of shpool var get and shpool var set commands in a wrapper script, but I want it as a first-party feature.

@ethanpailes ethanpailes requested a review from maxhbooth May 9, 2026 19:47
@ethanpailes ethanpailes force-pushed the add-var-default-config branch from 268e66d to 903af90 Compare May 9, 2026 20:05
This patch adds a new var_default config option allowing users
to set initial values for variables on daemon startup.

I want this because I want to be able to set a default workspace
var so I can know that it is always safe to connect to
`{workspace}-edit` and not have to worry about the daemon being
in a state where workspace is not yet set. This is possible to
hack together today with a series of `shpool var get` and
`shpool var set` commands in a wrapper script, but I want
it as a first-party feature.

I tweaked some of the test utils to deflake as well.
@ethanpailes ethanpailes force-pushed the add-var-default-config branch from 903af90 to 5e3752e Compare May 20, 2026 19:50
@ethanpailes ethanpailes merged commit 91fd598 into master May 20, 2026
7 checks passed
@ethanpailes ethanpailes deleted the add-var-default-config branch May 20, 2026 20:14
@release-plz-for-shpool release-plz-for-shpool Bot mentioned this pull request May 20, 2026
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.

2 participants