Skip to content

Add support for job-control suspend (ctrl+z/SIGSTP). - #944

Merged
thdxr merged 1 commit into
anomalyco:devfrom
rcorre:suspend
Jul 15, 2025
Merged

thdxr merged 1 commit into
anomalyco:devfrom
rcorre:suspend

Conversation

@rcorre

@rcorre rcorre commented Jul 13, 2025

Copy link
Copy Markdown
Contributor

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

Fixes anomalyco#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
@thdxr
thdxr merged commit 2ce694d into anomalyco:dev Jul 15, 2025
bussard76 pushed a commit to bussard76/openwork that referenced this pull request May 12, 2026
* feat(ci): add standalone AUR validate workflow

* fix(ci): avoid expression parsing in AUR workflow

* fix(ci): preserve workspace path for makepkg steps

* fix(ci): make AUR smoke launch path-aware

* fix(ci): relax AUR smoke gate to install sanity

* fix(ci): use generic package install smoke assertion

* fix(ci): preseed AUR host keys before publish

* fix(ci): inline AUR push with accept-new host keys
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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.

ctrl+Z -> go to background

2 participants