Skip to content

fix(composer): show full background task commands on expansion - #2497

Merged
vastsa merged 1 commit into
vastsa:mainfrom
Linuxdazhao:codex/background-task-full-command
Nov 21, 2026
Merged

vastsa merged 1 commit into
vastsa:mainfrom
Linuxdazhao:codex/background-task-full-command

Conversation

@Linuxdazhao

Copy link
Copy Markdown
Contributor

Summary

Show the full shell command above the output when a background task row is expanded. The command preserves line breaks and indentation, wraps to the panel width, and can be selected. It is visible even for a quiet task whose output is empty.

Collapsed: # long-argument-… with status and Stop on the same line.

Expanded: the same header, followed by both lines of the command and then the output.

Closes #2496.

Validation

  • The render regression fails on 48a65582678e and passes with the fix. It checks the exact multiline command above empty output.
  • 59 targeted desktop render, task state, and source contract checks passed.
  • node scripts/e2e-task-dock-tabs.mjs passed both isolated Electron scenarios on macOS arm64. The 440px fixture clicks the row, verifies the complete selectable command fits without horizontal overflow, and checks that the command and output stay within the Tasks tab.
  • Candidate 9d1b09d1dc3d, based on 48a65582678e. The base check and git diff --check passed.

A task row only exposed its ellipsized command preview and process output. Show the complete command in the expanded row so it can be read or selected even before the process writes output.

fixes vastsa#2496
@vastsa
vastsa merged commit 07d1049 into vastsa:main Nov 21, 2026
6 checks passed
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.

[Bug] Expanded background task hides the full command

2 participants