Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Visual recap — skippedThe visual recap job did not run for this pull request. This is informational only and does not block the PR. Recap skipped for |
|
great idea @CheckPickerUpper - couple PR comments that would be good to address with them if you agree |
|
Addressed in commit |
|
great, thanks @CheckPickerUpper - couple more popped in on the latest :D |
There was a problem hiding this comment.
Builder reviewed your changes and found 2 potential issues 🟡
Review Details
This incremental update addresses the two previously open concerns well. I verified that the OpenAI-compatible execution path no longer runs with broad full-auto local tooling: it now uses a restricted recap-source tool profile with auto-edit, disables MCP loading for that profile, and limits output to the recap source artifact. I also verified that the generic fallback rate-card problem was addressed by adding explicit unavailable cost handling for compatible-provider runs, and I resolved both prior review threads.
Risk remains standard (medium) because this PR changes shared workflow, CLI, and usage-accounting infrastructure rather than UI. The overall direction is strong: provider-specific model IDs are preserved at runtime, setup/doctor/gate parity is much tighter, and the new cost-resolution path is better aligned with honest reporting.
I found two follow-up issues in the latest changes. First, the new compatible-provider validator still rejects provider-defined model IDs that contain characters like /, even though the runtime now explicitly preserves custom IDs for endpoint-backed engines. Second, the shared usage table still coerces costSource: "unavailable" runs to zero cost in aggregate summaries, which under-reports spend as if those recap runs were free.
🧪 Browser testing: Skipped — PR only modifies backend/config/docs/tests, no UI impact.
| requirement: modelRequirement, | ||
| reason: "VISUAL_RECAP_MODEL is required (openai-compatible backend)", | ||
| }); | ||
| } else if (!RECAP_MODEL_PATTERN.test(rawModel)) { |
There was a problem hiding this comment.
🟡 Compatible-provider model validation still rejects slash-qualified model IDs
This validator still enforces ^[a-zA-Z0-9._-]{1,80}$, so provider-defined IDs like openai/gpt-oss-120b are rejected in setup/doctor/gate even though the runtime now preserves custom model IDs for compatible endpoints. Please relax the OpenAI-compatible validation path so it matches the new runtime behavior.
Additional Info
Manually verified in the shared openai-compatible validator. Also reported by 1/4 review agents.
| const costX100 = | ||
| costCentsX100 ?? | ||
| calculateCost(inTok, outTok, modelName, cacheReadTokens, cacheWriteTokens); | ||
| resolvedCostSource === "unavailable" |
There was a problem hiding this comment.
🟡 Unavailable recap cost is still collapsed to zero in shared usage summaries
When costSource === "unavailable", this writes cost_cents_x100 = 0, and the existing usage summaries still sum that column directly. That makes compatible-provider recap runs look free in shared billing/usage totals instead of preserving the unknown-cost state.
Additional Info
Manually verified against getUsageSummary(), which aggregates SUM(cost_cents_x100) without excluding unavailable rows. Also reported by 1/4 review agents.
b4059ee to
6c88c46
Compare
|
Review Agent skipped this PR — @CheckPickerUpper doesn't have a Builder seat in this space. If you're @CheckPickerUpper: you may already have a seat under a different GitHub account. Reconnect GitHub If you're an admin: Add @CheckPickerUpper to this space |
|
looks great, thanks @CheckPickerUpper ! |
* Add OpenAI-compatible PR recap providers * Complete compatible recap provider support * Require models for compatible recap providers * Keep recap setup and doctor aligned * Constrain compatible recap agent tools * Record unknown recap costs honestly * Allow provider-qualified recap models * Preserve unknown spend in usage summaries
What this does
Adds one provider-neutral
openai-compatiblePR Visual Recap backend. DeepSeek, Kimi, and other compatible APIs configure throughVISUAL_RECAP_API_KEY,VISUAL_RECAP_BASE_URL, andVISUAL_RECAP_MODEL; Claude and Codex remain unchanged.The generated workflow, reusable workflow, fork workflow, setup/doctor commands, docs, and tests all use the same canonical provider path. DeepSeek and Kimi are aliases for the generic backend rather than separate implementation forks.
Configuration example
Store the provider key in the repository secret
VISUAL_RECAP_API_KEY. Kimi can use its compatible API base URL and model in the same variables.Verification
pnpm --filter @agent-native/core exec vitest --run src/cli/recap.spec.ts --maxWorkers=25%— 184 passed.oxfmt --check— passed.git diff --check— passed.Follow-up
English PR Visual Recap documentation is updated. The localized documents under
packages/core/docs/content/locales/need translation follow-up.Tracking
The Jakuta Review Bot issue path could not create a tracking issue in
BuilderIO: that owner is outside the configuredJAKUTA_ALLOWED_OWNERSsafety allowlist. No personal-token issue was created and the allowlist was not widened.