Add --session flag to attach command. #2095

Closed
opened 2026-02-16 17:34:08 -05:00 by yindo · 1 comment
Owner

Originally created by @ndraiman on GitHub (Oct 14, 2025).

I would like the cli's attach command to support --session flag to allow attaching tui instance with the specified session loading.

I tried to open this as a tiny PR but got rejected for not being a collaborator, so I'm trying to open this issue instead 🙏

https://github.com/sst/opencode/compare/sst:dev...ndraiman:ndraiman/tui-attach-session?expand=1

Add --session/-s flag to the attach command to allow continuing existing sessions.
The session ID is passed through to the TUI binary when specified.

Image
Originally created by @ndraiman on GitHub (Oct 14, 2025). I would like the cli's `attach` command to support `--session` flag to allow attaching tui instance with the specified session loading. I tried to open this as a tiny PR but got rejected for not being a collaborator, so I'm trying to open this issue instead 🙏 https://github.com/sst/opencode/compare/sst:dev...ndraiman:ndraiman/tui-attach-session?expand=1 > Add --session/-s flag to the attach command to allow continuing existing sessions. > The session ID is passed through to the TUI binary when specified. <img width="1250" height="909" alt="Image" src="https://github.com/user-attachments/assets/ffec0506-5305-4bb4-b6d8-64defdb86fc0" />
yindo closed this issue 2026-02-16 17:34:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3165: This is nearly identical - requesting the same --session flag for the attach command to continue sessions via already running headless server

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 14, 2025): This issue might be a duplicate of existing issues. Please check: - #3165: This is nearly identical - requesting the same --session flag for the attach command to continue sessions via already running headless server Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2095