Fix MCP & title bar (#1348)

<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Fixes MCP handoff by detecting an edit-code tool call and stopping
generation. Simplifies the title bar credit tooltip; also blocks dyad-*
tags in the system prompt and updates tests.

- **Bug Fixes**
- Stop generation on edit-code via hasToolCall; add a no-op edit-code
tool to signal handoff.
  - Combine tool-call stop with existing step limit for reliability.
  - Forbid <dyad-*> tags in the system prompt to prevent misuse.
- Remove credit usage/reset details from the title bar tooltip; keep the
delay note.
  - Update e2e snapshot to reflect the new prompt rule.

<!-- End of auto-generated description by cubic. -->
This commit is contained in:
Will Chen
2025-09-22 15:50:18 -07:00
committed by GitHub
parent a0606996fc
commit 9cca1d2af0
4 changed files with 14 additions and 10 deletions

View File

@@ -235,14 +235,6 @@ export function AICreditStatus({ userBudget }: { userBudget: UserBudgetInfo }) {
</TooltipTrigger>
<TooltipContent>
<div>
<p>
You have used {Math.round(userBudget.usedCredits)} credits out of{" "}
{userBudget.totalCredits}.
</p>
<p>
Your budget resets on{" "}
{userBudget.budgetResetDate.toLocaleDateString()}
</p>
<p>Note: there is a slight delay in updating the credit status.</p>
</div>
</TooltipContent>