[codex] stabilize openrouter defaults and app identity#197
Merged
anand-testcompare merged 4 commits intomainfrom Mar 6, 2026
Merged
[codex] stabilize openrouter defaults and app identity#197anand-testcompare merged 4 commits intomainfrom
anand-testcompare merged 4 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Browserbase Replays
Workflow run: 22752563489 |
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
This PR temporarily switches Sketchi's default OpenRouter model back to
google/gemini-3-flash-previewand improves OpenRouter request identification so activity and provider behavior are easier to trace.This is a stabilization branch, not the full agent-architecture fix. The longer migration plan for moving the thread flow to Convex agent components is documented locally in
.memory/convex-agent-migration-plan.md.User impact
Users have been seeing inconsistent diagram generation/edit behavior, especially around multi-step structured flows. The immediate effect is that some requests fall into timeout or
AI_NoOutputGeneratedErrorpaths without producing a persisted scene.This temporary change improves the default model path for generation/restructure work and makes OpenRouter traffic clearly attributable to the Sketchi backend in activity logs.
Root cause
There are two separate issues in play:
HTTP-RefererplusX-Title: sketchi (env), which makes traffic attribution harder when several apps share an OpenRouter account.What this PR changes
google/gemini-3-flash-previewappNameappComponentappIdentifierappTitleappUrlX-Title: sketchi/backend (env)instead of the previous ambiguous titleValidation
Local checks:
bun x ultracite fixbun run check-typesbun run buildcd packages/backend && bun run testFocused verification:
node .../validate_mermaid_in_md.mjs .memory/convex-agent-migration-plan.mdgoogle/gemini-3.1-flash-lite-previewvsgoogle/gemini-3-flash-previewgoogle/gemini-3-flash-previewResidual risk
This PR does not fix the underlying harness/control-flow issue.
google/gemini-3-flash-previewThe intended follow-up is to replace the current nested flow with Convex agent components using a parent thread agent and child agents as tools, with deterministic terminal transitions for validated intermediate state.