GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(session): fire system.transform before messages.transform by ualtinok · Pull Request #19961 · anomalyco/opencode Conversation
Contributor
Issue for this PRCloses #19960 Type of change
What does this PR do?Reorders the plugin hook execution so The system prompt assembly (agent prompt + env + skills + instructions + user.system) and the system.transform hook + header caching logic were extracted from Also adds
How did you verify your code works?
Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
3 of 6 tasks
ualtinok
force-pushed
the
fix/plugin-hook-ordering
branch
3 times, most recently
from
21ca0d6 to
9e0a1f2
Compare
ualtinok
force-pushed
the
fix/plugin-hook-ordering
branch
from
9e0a1f2 to
f99f9a6
Compare
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion for the human to consider: this summary failure path persists
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion for the human to consider: this new pre-stream failure path records
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
ualtinok
marked this pull request as draft
3 of 6 tasks
ualtinok
marked this pull request as ready for review
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
ualtinok
force-pushed
the
fix/plugin-hook-ordering
branch
5 times, most recently
from
8c371a9 to
1cb9c3e
Compare
ualtinok
force-pushed
the
fix/plugin-hook-ordering
branch
3 times, most recently
from
c97494d to
01faef0
Compare
ualtinok
force-pushed
the
fix/plugin-hook-ordering
branch
from
db13429 to
43afdf2
Compare
ualtinok
force-pushed
the
fix/plugin-hook-ordering
branch
from
43afdf2 to
5207442
Compare
randomvariable
added a commit
to randomvariable/opencode
that referenced
this pull request
Keep the volatile current date out of the cached system prefix for DeepSeek models (both the V2 runner and V1 path) and instead append it to the trailing user turn, add SystemContext.omit, and rework DeepSeek reasoning handling so reasoning_content is only replayed across assistant tool turns (and caching hints are skipped) — maximizing DeepSeek prompt-prefix cache reuse. Ported from anomalyco#31867 (adapted for the Effect layer; the prepare() date test passes an explicit system prompt since anomalyco#19961 moved system assembly to callers). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
randomvariable
added a commit
to randomvariable/opencode
that referenced
this pull request
Add an experimental subagent-interrupt capability (behind OPENCODE_EXPERIMENTAL_SUBAGENT_INTERRUPT): an Interrupt service with pending/terminal state, task_steer/task_cancel/task_abort tools (gated by a new `interrupt` permission), a POST /session/:id/interrupt endpoint, and a turn-boundary consume in the prompt loop that injects an escaped steer/cancel frame plus a visible transcript marker. Cancel records a terminal reason and force-breaks after a grace window; abort writes a marker, records the terminal, and cancels the BackgroundJob immediately. The TUI gains an esc-with-reason flow, footer button, and distinct interrupt markers. Ported from anomalyco#32425 (adapted for the Effect layer; merged with the prior task.ts/registry.ts/prompt.ts changes from anomalyco#29447/anomalyco#32122/anomalyco#12520/anomalyco#32192/anomalyco#19961). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
3 tasks done
Qiiks
added a commit
to Qiiks/opencode
that referenced
this pull request
…quest prep The Aug-15 upstream merge dropped both firings of this hook: ualtinok's prompt.ts-side trigger from fcb023e (port of anomalyco#19961) conflicted away, and upstream's request.ts-side block never landed in the resolution. Every plugin registering the hook (magic-context guidance injection + prompt-hash cache-flush coordination, aft-opencode hints) has been silently inert since. Restore upstream v1.18.18 semantics: fire after system assembly with {sessionID, model}, then rejoin a mutated multi-part system into header+rest so prompt-prefix caching stays stable. Regression test proves prepare() now delivers plugin mutations into prepared.system.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. system.transform fires after messages.transform — plugins can't coordinate system+message mutationsUh oh!
There was an error while loading. Please reload this page. 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. | |||||||||||||||||||||||||||||||||||||||||