Skip to content

About

Reference plugin for an undoable Archive current session command in OpenCode Desktop.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

OpenCode Session Archive

A small OpenCode Desktop plugin that adds Archive current session to the command palette and ⌘⇧M as its default Mac shortcut. It’s a reference implementation for making the workflow native to Desktop.

Press the shortcut from an idle session, including while the composer has focus. A toast counts down from five seconds and lets you click Undo. Until the countdown ends, the session stays open and no archive request is sent. If the timer expires, the plugin rechecks the original session, archives it if it’s still eligible, and closes its tab. Switching tabs doesn’t change the target.

Try it locally

Requires OpenCode Desktop V2 with GUI plugin support and Bun. The plugin uses the experimental GUI SDK; the repository includes the prebuilt GUI bundle.

git clone https://github.com/Santiago-j-s/opencode-session-archive.git
cd opencode-session-archive
bun install --frozen-lockfile
pwd

Add the absolute path printed by pwd to plugins in your global OpenCode config (~/.config/opencode/opencode.json or opencode.jsonc). Keep any existing entries.

{
  "plugins": ["/absolute/path/to/opencode-session-archive"]
}

Open an idle session and try ⌘⇧M or Archive current session in the command palette. The binding can be changed in Settings → Shortcuts.

Development

bun run typecheck
bun run build

The build regenerates gui-experimental.cjs from src/gui.tsx.

About

Reference plugin for an undoable Archive current session command in OpenCode Desktop.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages