# Changelog

## 0.7.0

- Built against OpenCode 1.17.12.
- Add `/btw-fast`, which opens a temporary session with only bounded recent plain-text context instead of forking the full source session.
- Show immediate startup toasts for `/btw` and `/btw-fast` so long-running opens have visible feedback.
- Avoid copying the latest previous session when `/btw` or `/btw-fast` starts without an active session.
- Add fork timing diagnostics for `/btw` and real-TUI integration coverage for `/btw-fast`.

## 0.6.0

- Built against OpenCode 1.17.9.
- Remove the server plugin entry and helper tools; the package is now TUI-only.
- Remove server file-handoff/status compatibility paths from the TUI plugin.
- Update integration smoke tests to load the plugin only through `tui.json[c]`.
- Fix slash autocomplete selection for `/btw-end` and `/btw-merge` by letting OpenCode's autocomplete handler own Enter while autocomplete is open.
- Clear stale persisted `/btw` state when OpenCode resumes directly into a previously temporary session.

## 0.5.1

- Built against OpenCode 1.17.8.
- Speed up bare `/btw` opens by skipping the source-message pre-scan.
- Clarify that `/btw-end` returns to the original session as it exists at return time.
- Ask for confirmation before `/btw-merge` when the original session advanced while the temporary session was active.
- Add real-TUI integration coverage for bare `/btw` merge boundaries.

## 0.5.0

- Built against OpenCode 1.17.8.
- Target OpenCode 1.17.8 command behavior by moving `/btw` slash dispatch fully into the TUI plugin.
- Stop registering server prompt-command shims for the `/btw` command family, avoiding duplicate slash autocomplete entries and unsafe display-only server command handling.
- Add real-TUI integration coverage for typed bare `/btw`.

## 0.4.1

- Built against OpenCode 1.17.7.
- modernize TUI slash-command registration onto the current keymap layer API
- update session list, fork fallback, temp-session rehydration, and merge tracking for current OpenCode SDK shapes
- tag temporary sessions with plugin metadata and harden prompt/status handoff files
- add TypeScript typecheck coverage and update OpenCode/OpenTUI plugin dependencies

## 0.4.0

- Built against OpenCode 1.17.7.
- show changelog details in `README.md` so npmjs.com displays release notes
- clarify documented `/btw <prompt>` support and plugin-hook dispatch behavior

## 0.3.16

- Built against OpenCode 1.17.7.
- fix typed `/btw <prompt>` on OpenCode 1.17.7 without runtime exception flashes or origin transcript pollution
- avoid intercepting Enter for unrelated prompt slash commands such as `/sessions`
- add regression coverage for real TUI prompt handoff and keybinding behavior

## 0.3.15

- support OpenCode command hooks that mark slash commands handled through the hook output object

## 0.3.14

- add regression coverage that `/btw` continues to fork large source sessions without a fork guard

## 0.3.13

- share bytheway protocol helpers between the server and TUI plugin halves

## 0.3.12

- clear stale active `/btw` state from another origin session before opening a new side session
- add opt-in diagnostics and integration coverage for typed `/btw <prompt>` handoff flow

## 0.3.11

- update the TUI command and session flow to work with OpenCode 1.14.48
- add an opt-in integration test that launches a real OpenCode TUI session for `/btw` coverage

## 0.3.10

- align CI and release workflows with Bun 1.3.13 to match local verification
- make command-handler tests await command completion instead of depending on scheduler timing

## 0.3.9

- document `opencode plugin opencode-bytheway --global` as the primary install path because it updates both server and TUI config files
- keep manual dual-file config instructions as a fallback for users not using the plugin installer

## 0.3.8

- report both server and TUI plugin versions from `/btw-status` so mismatched OpenCode config entries are easier to diagnose
- document keeping `opencode.jsonc` and `tui.jsonc` pinned to the same plugin version

## 0.3.7

- restore typed `/btw`, `/btw-merge`, and `/btw-end` dispatch for current OpenCode by routing server slash shims into the TUI command handlers
- avoid duplicate slash autocomplete entries by keeping slash metadata on the server shims only
- make `/btw-status` use the current TUI toast event path
- resume or clear stale `/btw` state instead of refusing to open a side session after restart
- support `/btw <prompt>` by handing the inline prompt to the new temporary session

## 0.3.6

- keep `/btw` and `/btw-prompt` visible on the origin session even while a temporary `/btw` session is active
- continue to restrict `/btw-merge` and `/btw-end` to the active temp session where they actually work

## 0.3.5

- refine the published package metadata description to better describe the Claude Code-inspired btw workflow
- include the plugin version in `/btw-status` output so loaded builds are easier to identify in TUI

## 0.3.4

- refine the published package metadata description to better describe the Claude Code-inspired btw workflow

## 0.3.3

- rename the remaining `/btw` slash-command family members to hyphenated forms: `/btw-merge` and `/btw-end`
- keep command-family overrides consistent with the same hyphenated naming, such as `/aside-merge` and `/aside-end`

## 0.3.2

- rename the experimental server-side prompt command to `/btw-prompt`
- route `/btw-prompt` through the existing TUI-owned `/btw` open flow so the initial prompt runs inside the forked session
- namespace and scope prompt handoff files to the origin session to avoid cross-session collisions during local testing

## 0.3.1

- scope `/btw` command visibility to the current session so unrelated sessions do not incorrectly show `/btw-end`
- handle `/btw-status` directly in the TUI with a toast instead of sending it through the agent loop

## 0.3.0

- add direct non-LLM dispatch for `/btw-prompt` while keeping the proven TUI handoff flow
- remove temporary debug slash commands and trim unused server helpers
- improve experimental runtime logging for live debugging and restore the file-based prompt handoff after the parent-linked refactor failed in the live host

## 0.2.3

- add direct non-LLM dispatch for `/btw-prompt` while keeping the proven TUI handoff flow
- remove temporary debug slash commands and trim unused server helpers
- improve experimental runtime logging for live debugging and restore the file-based prompt handoff after the parent-linked refactor failed in the live host

## 0.2.2

- restore `/btw` to TUI-only ownership and move the seeded server-side entrypoint to `/btw-prompt`

## 0.2.1

- publish the side-session-only release from the OIDC trusted publishing workflow

## 0.2.0

- remove `/btw_popup` and its popup-dialog runtime so the plugin focuses on temporary side sessions
- load active bytheway sessions cleanly, keep the sidebar indicator aligned with the active temp session, and improve command-family overrides for local installs

## 0.1.5

- align the runtime plugin id with the published package name and add direct server-entry coverage
- harden popup and temp-session cleanup for canceled runs and failed `/btw-end` deletes
- add an optional `OPENCODE_BYTHEWAY_COMMAND` env var to rename the `/btw` slash-command family
- pin Bun in CI and release workflows and document local `file://` plugin development setup

## 0.1.4

- publish a clean release from the planner-aligned workflow after the earlier workflow-only tags failed before matching package metadata

## 0.1.2

- align the standalone release workflow more closely with `opencode-planner` before the next publish attempt

## 0.1.1

- rename the npm package to `opencode-bytheway` so the standalone repo can publish under a clean available name

## 0.1.0

- add `/btw` for same-terminal temporary side sessions
- add `/btw-end` to return to the original session and close the temp session
- add `/btw_popup` for one-off popup questions that preserve the current screen
- improve popup rendering, copy feedback, and streaming stability
- publish from the standalone `opencode-btw` repository using a root package and root release workflow
