Skip to content

fix(hosts): make group startup-command field multi-line typeable#1100

Merged
binaricat merged 1 commit into
mainfrom
fix/1083-group-startup-command-multiline
May 26, 2026
Merged

fix(hosts): make group startup-command field multi-line typeable#1100
binaricat merged 1 commit into
mainfrom
fix/1083-group-startup-command-multiline

Conversation

@binaricat
Copy link
Copy Markdown
Owner

Follow-up to #1083 / #1096. User-reported (@pyroch): the multi-line startup-command sequence shipped in #1096 doesn't work for hosts under a group folder — only the first line ever runs.

Cause

GroupDetailsPanel.tsx rendered the group's Startup Command field as a single-line <Input> (className="h-10"). HTML <input> can't hold newlines, so users literally can't type a multi-line command on the group — only the first line is stored, and that one line is what each host inherits. HostDetailsPanel.tsx already uses a 3-row <Textarea> for the same field, which is why the per-host case works. Execution (scheduleStartupCommand/splitStartupCommandLines) and group inheritance (applyGroupDefaults directly copies startupCommand) are fine.

Fix

Replace the group panel's <Input> with the same <Textarea rows={3} className="min-h-[80px] font-mono text-sm"> as the per-host panel.

Test plan

  • npm run lint — clean
  • npm test — 1223 pass, 0 fail
  • npm run build — success
  • Manual: edit a host group → Startup Command field accepts newlines → save → host in that group runs each line in sequence on connect.

🤖 Generated with Claude Code

The group details panel rendered Startup Command as a single-line <Input>,
so users couldn't type newlines into it — only the first line ever made it
into the saved config, which then broke the multi-line sequencing behavior
shipped in #1096 for any host inheriting the command from its group.
Switch to a 3-row <Textarea> to match the per-host details panel, so a
multi-line command typed on the group is preserved end to end.

Refs #1083.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@binaricat binaricat merged commit 0e80955 into main May 26, 2026
16 checks passed
@binaricat binaricat deleted the fix/1083-group-startup-command-multiline branch May 27, 2026 07:24
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