Send panel issue/PR references to the active worktree session #53

Merged
pedromcaraujo merged 1 commit from fix-panel-send-worktree into main 2026-11-03 08:31:14 +00:00

Summary

The side panel's Send to terminal button, the clickable #N on an issue/PR row, and the issue palette all go through injectItem, which posted ch.name (the parent channel) to /type. On a worktree session (channel~wt) the reference landed in the main channel's terminal instead.

injectItem now posts currentSession(), the same target the file-drop and keybar use. The /type backend already accepts worktree session names.

Test plan

  • Open a worktree session, press Send to terminal on an issue — reference appears in the worktree's prompt
  • Same on the main channel still works
## Summary The side panel's **Send to terminal** button, the clickable `#N` on an issue/PR row, and the issue palette all go through `injectItem`, which posted `ch.name` (the parent channel) to `/type`. On a worktree session (`channel~wt`) the reference landed in the main channel's terminal instead. `injectItem` now posts `currentSession()`, the same target the file-drop and keybar use. The `/type` backend already accepts worktree session names. ## Test plan - [ ] Open a worktree session, press Send to terminal on an issue — reference appears in the worktree's prompt - [ ] Same on the main channel still works
Send panel issue/PR references to the active worktree session
All checks were successful
CI / check (pull_request) Successful in 46s
93c5fc148c
The drawer's Send to terminal button, the clickable issue number and the
issue palette all posted the parent channel name to /type, so on a
worktree session the reference landed in the main channel's terminal.
Post currentSession() instead, matching the file-drop and keybar.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pedromcaraujo/forge!53
No description provided.