chore(dashboard): AIN-89 · remove unwired TestCall stub#40
Merged
Conversation
Stub component at apps/dashboard/components/TestCall.tsx was scaffolded in dashboard build commit ed731c7 and never imported. It returns setTimeout-fake responses ("[stubbed response for …]") and a synthetic receipt_id — exactly the half-shipped fake button pattern Memory #5 warns against. A real test-call UI needs auth that the dashboard cookie-session cannot provide today: /v1/inference requires the agent's API key, and the multi-key model (tenant signs-as-agent) is the same gap blocking AIN-87. Deferring the test-call UI to land alongside that schema work instead of leaving a dead stub for a future agent to wire to fake data. Co-Authored-By: Claude <noreply@anthropic.com>
|
You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace. To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
apps/dashboard/components/TestCall.tsx— never imported, returnssetTimeoutfake responses + syntheticreceipt_idWhy now
AIN-89 [Dashboard P9+10+11] verified state on the feature branch (off main):
MintAgentTrigger→MintAgentModal)SpendPolicyEditor→PATCH /v1/agents/{id}/spend-policy)A real test-call UI cannot be one-session-shipped:
/v1/inferencerequires the agent's API key (one-time mint, not stored), and the dashboard runs as the tenant cookie-session. The "tenant signs-as-agent" auth path is the same gap blocking AIN-87 multi-key CRUD.Better to delete the stub than leave it to be wired to fake data by a future agent.
Test plan
pnpm -F dashboard typecheck— no broken importspnpm -F dashboard build— no missing module errors🤖 Generated with Claude Code