Skip to content

feat: add session name template support#357

Open
ethanpailes wants to merge 1 commit intomasterfrom
session-name-templates
Open

feat: add session name template support#357
ethanpailes wants to merge 1 commit intomasterfrom
session-name-templates

Conversation

@ethanpailes
Copy link
Copy Markdown
Contributor

Issue Link

#345

AI Policy Ack

Please ack that you have read the AI Policy
and explain your use of AI to generate this PR.

This PR was:

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

I vibed the tests, but meat coded all the application code.

Description

This patch adds support for session name templates so that you can switch multiple shpool sessions all at once.

In some sense this is a super-set of the 'shpool switch' FR. I did lay some groundwork for implementing support for that in this change, though I'm starting to wonder if templates are good enough on their own. The only extra thing that switch would bring is the ability to switch sessions you don't pre-declare as switchable with a dedicated variable up front.

One thing worth bikeshedding: I used '#{var}' as the substitution syntax. This seems clearly better than '${var}' substitution because it avoids weird nesting concerns in shells, but '#' is the comment char in shells so now I'm wondering if we should use a different syntax. Perhaps '@{var}' since that can be a bare work in shells?

@ethanpailes ethanpailes requested a review from maxhbooth April 30, 2026 17:50
@ethanpailes ethanpailes force-pushed the session-name-templates branch 2 times, most recently from 3087a3f to 6ad63c3 Compare April 30, 2026 18:02
This patch adds support for session name templates so
that you can switch multiple shpool sessions all at once.

In some sense this is a super-set of the 'shpool switch' FR.
I did lay some groundwork for implementing support for that
in this change, though I'm starting to wonder if templates are
good enough on their own. The only extra thing that switch would
bring is the ability to switch sessions you don't pre-declare as
switchable with a dedicated variable up front.

One thing worth bikeshedding: I used '#{var}' as the substitution
syntax. This seems clearly better than '${var}' substitution because it
avoids weird nesting concerns in shells, but '#' is the comment char in
shells so now I'm wondering if we should use a different syntax. Perhaps
'@{var}' since that can be a bare work in shells?

BREAKING: this breaks shpool-protocol
@ethanpailes ethanpailes force-pushed the session-name-templates branch from 6ad63c3 to 41d320d Compare April 30, 2026 18:23
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