Skip to content

feat(core): add autonomous goal command - #45379

Merged
thdxr merged 1 commit into
v2from
goal-plugin
Sep 18, 2026
Merged

thdxr merged 1 commit into
v2from
goal-plugin

Conversation

@thdxr

@thdxr thdxr commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

  • add an internal /goal command that stores one active goal per session
  • evaluate active goals after successful session execution and emit synthetic continuation/completion messages
  • start a single process-level event worker while registering the command in each location

Testing

  • bun test test/plugin/goal.test.ts from packages/core
  • bun typecheck from packages/core
  • full pre-push workspace typecheck (33 packages)

@sambitcreate

Copy link
Copy Markdown

hell yeah

@thdxr
thdxr enabled auto-merge (squash) August 26, 2026 20:38
@Noisemaker111

Copy link
Copy Markdown
Contributor

as seen on dax stream

Title gen doesn't fire on /goal's first prompt: the trigger runs (inbox promotion → SessionRunner title fiber), but SessionTitle.generate reads its input from SessionHistory.firstUserMessage, which filters on type = 'user' — and synthetic inbox items persist as type: 'synthetic'. So the title silently no-ops (if (!firstUser) return) until a real user message exists in the session. Fix is probably falling back to a synthetic message for title input when no user message exists yet.

@thdxr
thdxr merged commit 5464aa4 into v2 Sep 18, 2026
8 checks passed
@thdxr
thdxr deleted the goal-plugin branch September 18, 2026 20:59
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 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.

3 participants