mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2350] [MERGED] Fix default agent billing warning #5553
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5553
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2350
Author: @cha1latte
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2169-agent-billing-warning📝 Commits (2)
3d9e76eFix default agent billing warning129287fAddress warning review feedback📊 Changes
5 files changed (+350 additions, -32 deletions)
View changed files
📝
src/engine/generation/agent-runner.ts(+69 -4)📝
src/engine/generation/generation-events.ts(+3 -0)📝
src/engine/generation/start-generation.test.ts(+228 -1)📝
src/engine/generation/start-generation.ts(+31 -26)📝
src/features/runtime/generation/hooks/use-generate.ts(+19 -1)📄 Description
Linked issue
Closes #2169
Why this change
What changed
default_agent_connection_activewarning payload while resolving agents that useconnections.defaultForAgents.agent_warninggeneration event for normal generation and manual agent retry paths.Refactor impact
Primary owner:
engine generation
Impact areas reviewed:
src/engine/generation/agent-runner.tssrc/engine/generation/start-generation.tssrc/features/runtime/generation/hooks/use-generate.tsBoundary notes:
Pressure points touched:
use-generate.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm exec vitest run src/engine/generation/start-generation.test.tspassed. The regression tests proveagent_warningis emitted withdefault_agent_connection_active, connection name, model, and agent name for normal generation, manual agent retry, and Lorebook Keeper backfill when an agent uses the default-for-agents connection. The negative control proves no warning is emitted when no default-for-agents connection exists.pnpm checkpassed after the final diff.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.jsonpassed locally.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. This is an event/warning restoration with provider-free machine proof; no real API call or desktop UI state is required to prove the core claim.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.