-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Feature request: boolean/checkbox parameter type for tab configs #11134
Copy link
Copy link
Open
Labels
area:launch-configsLaunch configurations, workflows, tab configs, and automation entry points.Launch configurations, workflows, tab configs, and automation entry points.enhancementNew feature or request.New feature or request.ready-to-specThe issue is ready for a product and technical spec.The issue is ready for a product and technical spec.repro:highThe report includes enough evidence that the issue appears highly reproducible.The report includes enough evidence that the issue appears highly reproducible.triage-reviewedtriagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.warp:auto-triage-review
Metadata
Metadata
Assignees
Labels
area:launch-configsLaunch configurations, workflows, tab configs, and automation entry points.Launch configurations, workflows, tab configs, and automation entry points.enhancementNew feature or request.New feature or request.ready-to-specThe issue is ready for a product and technical spec.The issue is ready for a product and technical spec.repro:highThe report includes enough evidence that the issue appears highly reproducible.The report includes enough evidence that the issue appears highly reproducible.triage-reviewedtriagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.warp:auto-triage-review
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
Tab configs currently only support
text,branch, andrepoparameter types. When a user wants to offer a simple on/off toggle (e.g., "set upstream automatically"), they have to use atextparameter and ask the user to typeyesorno. This is clunky and error-prone. A native checkbox or boolean parameter type would make these workflows much cleaner.Problem
In tab config TOML files, the
[params.<name>]section supports onlytype = "text",type = "branch", andtype = "repo". There is no way to present a simple true/false or yes/no choice as a checkbox or toggle in the parameter fill-in modal.For example, a user might want a worktree tab config with an option like "Set upstream to base branch?" that is checked by default. Today the only workaround is:
This requires the user to type a magic string (
yes/no) and relies on the shell author to write a conditional that checks for an exact string match. It also prevents the UI from rendering a compact, intuitive control.Reproduction steps or desired workflow
type = "checkbox"ortype = "boolean"under[params.<name>].text,branch,repo).Desired behavior
A new parameter type — e.g.,
type = "boolean"ortype = "checkbox"— that renders a checkbox in the fill-in modal and produces a true/false value that can be interpolated into commands.Example usage:
In
commands, the parameter could be referenced as{{set_upstream}}and evaluate to"true"/"false"(or1/0), making it easy to use in shell conditionals without magic strings.Artifacts
None attached
Warp version
Unknown
Operating system
macOS