Skip to content

fix: allow disabling the default general agent#1616

Merged
adamdotdevin merged 1 commit into
anomalyco:devfrom
yihuikhuu:fix-allow-disable-general-agent
Aug 5, 2025
Merged

fix: allow disabling the default general agent#1616
adamdotdevin merged 1 commit into
anomalyco:devfrom
yihuikhuu:fix-allow-disable-general-agent

Conversation

@yihuikhuu

Copy link
Copy Markdown
Contributor

No description provided.

@adamdotdevin
adamdotdevin merged commit 2b195e8 into anomalyco:dev Aug 5, 2025
1 check passed
@yihuikhuu
yihuikhuu deleted the fix-allow-disable-general-agent branch August 7, 2025 13:08
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
bussard76 pushed a commit to bussard76/openwork that referenced this pull request May 12, 2026
… the active turn (anomalyco#1616)

The live transcript cache (fed by SSE delta events) was given absolute
priority over the snapshot. When a long session streams a new turn, the
cache often contains only the current user+assistant pair while the
snapshot still holds the full history. The old deriveRenderedSessionMessages
returned whichever was non-empty first, so the user saw only their last
message until the session went idle and a full re-seed restored everything.

Extract message-merge helpers that union snapshot history with live
streaming parts, preferring longer cached text for in-progress parts.
deriveRenderedSessionMessages now merges both sources when the live cache
is missing messages the snapshot knows about, and appends live-only
messages (the active turn) when streaming.

seedSessionState in session-sync.ts reuses the same merge helpers,
replacing the inline O(N*M) merge that could also drop older cached
messages when a busy snapshot arrived with fewer entries.
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 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.

2 participants