Skip to content

fix(orchestrator): dispatch prompt, session naming, phantom projects#12

Open
maupet wants to merge 3 commits into
SGudbrandsson:masterfrom
maupet:fix/orchestrator-dispatch-improvements
Open

fix(orchestrator): dispatch prompt, session naming, phantom projects#12
maupet wants to merge 3 commits into
SGudbrandsson:masterfrom
maupet:fix/orchestrator-dispatch-improvements

Conversation

@maupet
Copy link
Copy Markdown

@maupet maupet commented Apr 25, 2026

Summary

Four fixes to the orchestrator's work item dispatch:

  • Include externalRef/externalUrl in dispatch prompt — issue links and references were silently dropped, so dispatched sessions had no context beyond the title
  • Name sessions after work item title — instead of the branch name (e.g., feat/wi-abc123-slug), sessions now show the human-readable work item title
  • Move dispatch worktrees to ~/.codeman/dispatch-worktrees/ — previously created as sibling directories in ~/codeman-cases/, causing phantom projects to appear in the case list
  • Use writeViaMux() instead of sendInput()sendInput() called runPrompt() which failed with "Session already has a running process" because the interactive PTY was already running. writeViaMux() types the prompt directly into the existing tmux session.

Test plan

  • Create a work item with title, description, and external URL
  • Verify dispatched session is named after the work item title
  • Verify the prompt includes description and external URL
  • Verify no phantom project appears in the case/session list
  • Verify the worktree is created in ~/.codeman/dispatch-worktrees/
  • Verify Claude actually receives and acts on the prompt

🤖 Generated with Claude Code

Maurizio Petrone and others added 3 commits April 25, 2026 11:29
…viewport

The keyboard accessory bar buttons (settings, commands, Terminal/Transcript
toggle, project picker, hamburger) had dark styling only in the <430px and
768-1023px breakpoints. The 430-768px tablet range had no styles, causing
buttons to render with default white browser styling.

Moves shared accessory bar component styles (buttons, command drawer, view
mode toggle) to the global scope in mobile.css so they apply at all sizes
where the file loads (<1024px). Breakpoint-specific blocks still override
sizes as needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Work items created from the Board UI had no caseId, so the orchestrator
could never dispatch them. Add a required Case dropdown to the creation
dialog that:
- Fetches cases from /api/cases (with fallback if app.cases not loaded)
- Pre-selects the current toolbar case
- Sends caseId in the POST body

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nt phantom projects

Three fixes to the orchestrator's work item dispatch:

1. Include externalRef and externalUrl in the prompt sent to Claude,
   so issue links and references aren't silently dropped.

2. Name dispatched sessions after the work item title instead of
   the branch name, for easier tracking in the session list.

3. Move dispatch worktrees to ~/.codeman/dispatch-worktrees/ instead
   of creating sibling directories in ~/codeman-cases/ which appeared
   as phantom projects in the case list.

4. Use writeViaMux() instead of sendInput() to deliver the prompt.
   sendInput() calls runPrompt() which fails with "Session already has
   a running process" because the interactive PTY is already running.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maupet
Copy link
Copy Markdown
Author

maupet commented Apr 25, 2026

one important fix (the orchestrator reads the work item descriptions)
plus a few improvements (nest under correct project with an useful name)

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