2code icon indicating copy to clipboard operation
2code copied to clipboard

Herdr v0.9.0 has no create-time startup command (Task 17 gap)

Open AkaraChen opened this issue 2 months ago • 1 comments

Summary

Parent: #394. Found while verifying the Herdr integration contract (#395) against pinned Herdr v0.9.0.

workspace.create and tab.create accept cwd, label, env, and focus. They do not accept a startup command / argv. layout.apply can declare pane command arrays (documented, not live-probed). The verified workaround is JSON pane.send_input with text ending in a newline, or CLI herdr pane run. CLI herdr pane run is not a schema method.

This blocks a faithful Task 17 mapping of 2code terminal templates and startup commands unless we accept that one-shot workaround and never replay it on reattach.

Verified

  • JSON pane.send_input with text ending in a newline submits the command plus Enter once; reattach / server restart does not replay it.
  • CLI herdr pane run is the CLI form of the same operation (empty stdout on success).
  • --env KEY=VALUE is accepted on create.

Options

  1. Map 2code startup commands to a single JSON pane.send_input / CLI herdr pane run after create (never on reattach).
  2. Use layout.apply argv if Task 1 follow-up verifies it.
  3. Wait for an upstream create-time command field.

Do not treat #395 as having a first-class startup-command API.

AkaraChen avatar Sep 14 '26 13:09 AkaraChen

Leaving open: upstream Herdr v0.9.0 still has no create-time startup command / argv. That is not a 2code defect on this tip.

  • docs/herdr-integration.md:455: Startup command is not a create parameter.
  • Workaround already on this stack: post-create JSON pane.send_input (src-tauri/crates/infra/src/herdr/transport.rs:1042-1046; test create_sends_startup_after_tab_create in herdr.rs:1948-1961).
  • Did not invent a create-time argv field on tab.create / workspace.create.

AkaraChen avatar Sep 16 '26 19:09 AkaraChen