Skip to content

feat: add var_default config option#370

Open
ethanpailes wants to merge 1 commit intomasterfrom
add-var-default-config
Open

feat: add var_default config option#370
ethanpailes wants to merge 1 commit intomasterfrom
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
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 268e66d to 903af90 Compare May 9, 2026 20:05
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.

1 participant