GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): OpenCode steers keep their $skill mentions by MaxFabian25 · Pull Request #42141 · pingdotgg/t3code

Conversation

@MaxFabian25

@MaxFabian25 MaxFabian25 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Problem

On an OpenCode thread, a $skill mention in a message sent while the agent is still working never reaches OpenCode as a skill. The message is delivered as a steer, and the steer path in the OpenCode adapter sends only text and files. A message sent once the turn has ended attaches the same skills normally.

I found this in my own OpenCode history. Between 13 and 24 November, 9 of my messages named OpenCode skills by their ids. The 7 sent as new turns (ids starting msg_t3_turn_) carried those skills in skills. The 2 sent as steers (ids starting msg_t3_steer_) carried none, so the model saw only the literal $name, although the same skills attached normally on later new turns.

To reproduce: start a long turn in an OpenCode thread, then send $some-skill continue before it ends. The stored user message has no skills.

Change

steerTurn now resolves the mentions with the same skillsMentioned used for new turns (the #29535 read, wait for the scan, and reread, in the running turn's directory) and adds skills to the steer prompt. skillsMentioned takes the message text and parses the mentions itself, so both paths share one call.

A steer whose $words are not skills, such as echo $HOME, now costs the same skill and model reads before it is sent that a new turn already pays.

Scope

Small fix of an obvious bug, so there is no issue. Only the OpenCode v2 adapter sends skill attachments. #34138 covers the Codex side of the same gap, which needs a different approach there because Codex can't take skills on a steer.

Verification

  • New test sends a $skill named in a message that steers the running turn in OpenCode2AdapterV2.test.ts. On main it fails at the steer: the adapter sends session.prompt with delivery: "steer" and text $greet first, with no skill read and no skills:

    OpenCodeReplayMismatchError: OpenCode replay frame mismatch at cursor 14
    -     "location[directory]": "/work/opencode2",
    +     "delivery": "steer",
    +     "id": "msg_t3_steer_ses_f148ca2deffeJcwCnRQtb0YFNX:message:opencode2-adapter:steer",
    +     "sessionID": "ses_f148ca2deffeJcwCnRQtb0YFNX",
    +     "text": "$greet first",
    -   "type": "skill.list",
    +   "type": "session.prompt",
    

    With the fix it passes. Removing only the new skills field from the steer prompt makes it fail with expected { …(4) } to have deep property 'skills', so the assertion checks the payload and not only the request order.

  • All 198 tests in OpenCode2AdapterV2.test.ts pass. vp run check:changed passes: format, lint, knip, typecheck of 10 packages, and 200 tests across 2 files.

  • Against a real OpenCode 2.3.2 opencode serve, run with an isolated home, a steer prompt with skills: [{ id: "greet" }] returned 200 and the stored message carried the skill's content. The same prompt with skills: [{ id: "HOME" }] returned 400 Skill not found: HOME, which is why the steer path filters through skillsMentioned instead of sending every mention.

Not checked: a steer sent from the T3 app against a live model after the fix. The before evidence comes from my real OpenCode history, and the after evidence from the test and the raw API probe above.

Claude Opus 5.5 via Claude Code under T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
MaxFabian25 added 2 commits November 24, 2026 13:40
@MaxFabian25
test(server): reproduce OpenCode steers dropping $skill mentions
20ab6ce
@MaxFabian25
fix(server): OpenCode steers keep their $skill mentions
175e5c6
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The OpenCode adapter now resolves skill mentions in steer messages and includes matching skill IDs in steer prompts. A test covers steering an active execution with $greet.

Changes: OpenCode skill mentions

Layer / File(s) Summary
Resolve skill mentions and prepare prompts
packages/provider-opencode/src/server/v2/adapter.ts, apps/server/src/orchestration-v2/Adapters/OpenCode2AdapterV2.test.ts
The adapter extracts skill mentions from message text and includes resolved skills in turn and steer prompts. The test checks that a $greet steer adds the greet skill to the second prompt and the turn completes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested labels: bugfix

Suggested reviewers: juliusmarminge, macroscopeapp

Merge Risk: Minimal · up to 7e581

Merge Risk: ⚪ Minimal · up to 7e581

Messages sent while an agent is working now carry their mentioned skills, matching new turns. The change is narrow and tested, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(server): OpenCode steers keep their $skill mentions" matches the main change: steer prompts in the OpenCode v2 adapter now resolve and include $skill mentions, as the raw summary and ob…
Description check Passed The description follows the template. It has Problem, Change, Scope, and Verification sections, each filled with specific content. The Problem section gives reproduction steps and an environment. The …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(server): OpenCode steers keep their $skill mentions" matches the main change: steer prompts in the OpenCode v2 adapter now resolve and include $skill mentions, as the raw summary and objectives describe. It is specific, uses a conventional commit format, and names the affected path (steers).

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Scope, and Verification sections, each filled with specific content. The Problem section gives reproduction steps and an environment. The Change section explains the fix and why skillsMentioned is shared. The Scope section links to a related issue (#34138) and explains why there is no issue for this fix. Verification lists the focused test, the failing-before and passing-after results, the full test run, and a raw API probe. It also states what was not checked. It names the model and harness at the end, as the template asks. The description does not link a specific bug issue, but it explains why none is needed for a small obvious fix, which the template allows.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: f692811
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12acb757-9c78-49e8-a5d5-047f0becb21f
Commits

Reviewing files that changed from the base of the PR and between f692811 and 175e5c6.

Files selected for processing: 2

  • apps/server/src/orchestration-v2/Adapters/OpenCode2AdapterV2.test.ts
  • packages/provider-opencode/src/server/v2/adapter.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
@juliusmarminge @claude
Merge origin/main into fix/opencode-steer-skills
7e58115
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 24, 2026

Copy link
Copy Markdown
Member

Evidence

Linux web client, Chromium, light theme, 1280×800 CSS pixels (DPR 2), OpenCode 2.2.7 / Claude Haiku 4.5; fresh isolated databases on both commits.

Send the sleep-45 prompt, select the $greet skill chip while Running sleep, click Steer message, then repeat from idle as a control. Inspect OpenCode’s stored user messages.

Before After
f692811b95 7e58115562
Before: steer requires a recovery Skill call After: steer receives confirmation directly
Interaction recording Interaction recording
Stored messages: steer has no skills field; idle control includes greet. Model recovers using skill(greet). Stored messages: steer and idle control both include greet content. Direct SKILL_CONFIRMED_7731 replies.

Seed/extraction script and exact UI procedure. Extracts omit metadata and replace the synthetic skill directory with a placeholder. Both composer runs persisted the same two-space text after chip insertion.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@juliusmarminge
juliusmarminge merged commit 94190c6 into pingdotgg:main Nov 24, 2026
56 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 24, 2026
@orbitingflea orbitingflea mentioned this pull request Nov 25, 2026
fix(fork): resolve upstream merge 4e6b1fa771 (2026-11-24) orbitingflea/t3code#308
Merged
orbitingflea added a commit to orbitingflea/t3code that referenced this pull request Nov 25, 2026
@orbitingflea @claude
fix(fork): resolve upstream merge 4e6b1fa (2026-11-24)
8957e56
Resolves the 10 conflicted files of commit A (5422d07) and the merge
breaks:

- Identify.ts takes upstream's version (pingdotgg#42299 drops Codex and Claude
  account ids from analytics). The Codex account-change restart (#29)
  keeps its auth.json reader in the fork-only file fork/codexAccount.ts.
- AgentSessionScanner: the checkout cache check joins upstream's new
  isT3OwnedPath (pingdotgg#42036).
- GitVcsDriver, storageCleanup, cli/thread: imports from both sides.
- OpenCode: upstream's skillsMentioned(location, text) gets the text
  after the inline context (pingdotgg#42141).
- Sidebar: upstream's triage-aware operate check, then the fork's
  display mode action.
- Minimap: upstream's markdownPlainText preview (pingdotgg#42575), which already
  keeps single tildes.
- AcpAdapterV2.test: upstream's startup phase checks and the fork's
  account checks.
- settleAfterRun's new steer check (pingdotgg#42092) ignores FYI items, which
  are no user input; FyiSettle.test mocks turnItems and covers it.
- AntigravityAdapterV2.test: new upstream test passes profileDirectory.
- agentContextBudget.json: measured values.
- fork/previewChrome.ts: full Chrome pin follows upstream's
  PreviewBrowser.VERSION 158.0.8127.88 (pingdotgg#42043), with the archive sizes
  and sha256 of that build.
- fork/antigravityAccountEmail.ts: upstream's formatter output.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patroza patroza mentioned this pull request Nov 25, 2026
Merge upstream main through feecca53e4dc patroza/t3code#675
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@MaxFabian25 @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.