Skip to content

P2.1: Add attach_command to TaskStatusView (multiplexer Phase 2)#428

Merged
takemo101 merged 1 commit intomainfrom
issue-405-attach-command-field
May 10, 2026
Merged

P2.1: Add attach_command to TaskStatusView (multiplexer Phase 2)#428
takemo101 merged 1 commit intomainfrom
issue-405-attach-command-field

Conversation

@takemo101
Copy link
Copy Markdown
Owner

Summary

Closes #405. Add attach_command: { argv: string[] } | null to
TaskStatusView, populated from MultiplexerBackend.attachCommand.
The legacy attach_hint: string is kept and derived as
argv.join(" ") so existing consumers continue to work during the
deprecation window. P5.1 (#422) removes the legacy field after a
minor release passes.

Test plan

  • adapter-contract test asserts both fields populated and that
    they agree (argv joined matches the hint string)
  • Batch-mode task asserts both fields are nullish (attach_hint
    undefined, attach_command null)
  • 205/205 adapter tests pass; full typecheck clean

Add attach_command: { argv: string[] } | null to TaskStatusView,
populated from MultiplexerBackend.attachCommand. attach_hint
remains as a derived string ("argv joined by spaces") during the
deprecation window so existing consumers keep working. P5.1 (#422)
removes attach_hint after the deprecation release.

Both fields are populated together: when supports_attach is false
or the task is terminal, attach_hint is undefined and
attach_command is null. Adapter contract test asserts they agree.
@takemo101 takemo101 merged commit 87a8647 into main May 10, 2026
@takemo101 takemo101 deleted the issue-405-attach-command-field branch May 10, 2026 07:28
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.

P2.1: Add attach_command to TaskStatusView (multiplexer Phase 2)

1 participant