Skip to content

feat(opencode-plugin): instruct model to create branch with conventional prefix#276

Merged
mrsimpson merged 1 commit into
mainfrom
proud-garlics-sleep
May 6, 2026
Merged

feat(opencode-plugin): instruct model to create branch with conventional prefix#276
mrsimpson merged 1 commit into
mainfrom
proud-garlics-sleep

Conversation

@mrsimpson
Copy link
Copy Markdown
Collaborator

Summary

  • When no workflow is active, the opencode plugin now instructs the model to first create a branch with a meaningful name using conventional commit prefixes (e.g., feat/add-new-feature, fix/bug-description, refactor/improve-logic) before calling start_development
  • Modified both "no active workflow" message locations in plugin.ts (lines 381 and 400) to include branch creation guidance

Motivation

Previously, the plugin would instruct the model to call start_development without first creating a properly named branch. This change ensures that development sessions start with good git hygiene by following conventional commit naming conventions for branches.

Changes

  • packages/opencode-plugin/src/plugin.ts: Updated the "No Active Workflow Detected" message text in both injection points (handler failure path and CONVERSATION_NOT_FOUND error path) to include branch creation instructions with conventional commit prefix examples

Testing

  • Verified the changes via git diff to ensure both message locations were updated correctly
  • No tests were modified (change is a simple string literal update)
  • Code cleanup completed: no debug output, TODO/FIXME, or debugging code blocks found

Related

Implements feature request to improve workflow initialization experience by ensuring proper branch naming from the start.

…nal prefix

When no workflow is active, the plugin now instructs the model to first
create a branch with a meaningful name using conventional commit prefixes
(e.g., feat/add-new-feature, fix/bug-description) before calling
start_development. This ensures proper branch naming conventions are
followed from the start of each development session.
@mrsimpson mrsimpson merged commit e35dd84 into main May 6, 2026
3 checks passed
@mrsimpson mrsimpson deleted the proud-garlics-sleep branch May 6, 2026 20:01
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.

1 participant