Skip to content

[FEATURE]: Workspace delete script #17427

Closed as not planned
Closed as not planned

Description

@jamie

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I work on a database-backed webapp and want to set up dedicated test databases when I open a new workspace (in OpenCode desktop, mac) - I can do this with a shell script that I configure to run as a Workspace startup script. However, when I wrap up a workspace it leaves the database behind.

I'd love a "Workspace delete script" option that would let me hit a cleanup script before the worktree is removed, so I can keep my environment clean.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 13, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 13, 2026
  3. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

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

  4. jamie commented on Mar 13, 2026

    @jamie
    Author

    Agree #15680 is foundational (core) work, I'm specifically requesting that once the support is there that it be surfaced to the desktop app UI.

  5. jacquesbh commented on Mar 25, 2026

    @jacquesbh

    I've started to work on something but I am definitely not confident about having the time to finish. Like we have the startup script in project settings, having a shutdown script is what I planed.

    I can share what I have started.

  6. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  7. mikew commented on Jun 29, 2026

    @mikew

    I just commented on #15680 but yes, a text field next to "Workspace startup script" is what I'm actually after.

  8. github-actions commented on Aug 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions