[PR #944] [MERGED] Add support for job-control suspend (ctrl+z/SIGSTP). #9749

Closed
opened 2026-02-16 18:14:06 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/944
Author: @rcorre
Created: 7/13/2025
Status: Merged
Merged: 7/14/2025
Merged by: @thdxr

Base: devHead: suspend


📝 Commits (1)

  • 276f114 Add support for job-control suspend (ctrl+z/SIGSTP).

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 packages/tui/internal/tui/tui.go (+5 -0)

📄 Description

Fixes #584.

This allows you to drop out of opencode, run some things in your shell, and resume opencode.

Pressing ctrl+z suspends the opencode job in your shell, you can run fg to resume it.
This was surprisingly easy to add. It seems like bubbletea handles switching to/from raw mode on suspend/resume.
I've tested suspending/resuming opencode and my terminal remains clean.

See: https://github.com/charmbracelet/bubbletea/pull/1054/files#diff-d97478697adeda9d52cdf576d22266813b2fd5c030ec40dc2576c255347cfa2eR13-R24


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/944 **Author:** [@rcorre](https://github.com/rcorre) **Created:** 7/13/2025 **Status:** ✅ Merged **Merged:** 7/14/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `suspend` --- ### 📝 Commits (1) - [`276f114`](https://github.com/anomalyco/opencode/commit/276f114753b210100cf2310f226c96564dd16eff) Add support for job-control suspend (ctrl+z/SIGSTP). ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/tui/tui.go` (+5 -0) </details> ### 📄 Description Fixes #584. This allows you to drop out of opencode, run some things in your shell, and resume opencode. Pressing ctrl+z suspends the opencode job in your shell, you can run `fg` to resume it. This was surprisingly easy to add. It seems like bubbletea handles switching to/from raw mode on suspend/resume. I've tested suspending/resuming opencode and my terminal remains clean. See: https://github.com/charmbracelet/bubbletea/pull/1054/files#diff-d97478697adeda9d52cdf576d22266813b2fd5c030ec40dc2576c255347cfa2eR13-R24 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:06 -05:00
yindo closed this issue 2026-02-16 18:14:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9749