Skip to content

fix(openai): apply SELECTION-array unwrap to submit-handler llmModel (follow-up to #39)#40

Merged
ComBba merged 1 commit into
mainfrom
fix/openai-400-submit-handler-unwrap
May 13, 2026
Merged

fix(openai): apply SELECTION-array unwrap to submit-handler llmModel (follow-up to #39)#40
ComBba merged 1 commit into
mainfrom
fix/openai-400-submit-handler-unwrap

Conversation

@ComBba
Copy link
Copy Markdown
Contributor

@ComBba ComBba commented May 13, 2026

Follow-up to PR #39. The submit handler at src/server/index.ts:477-482 also reads openaiModel via settings.get and stores it into draft.llmModel. Same SELECTION-array bug as callOpenAI; without unwrap, draft.llmModel holds ["gpt-5.4-mini"] instead of "gpt-5.4-mini". Also adds .venv-chrome-auth + playwright/.auth to .prettierignore. CI 4/4 PASS.

🤖 Generated with Claude Code

…odel

The submit handler at src/server/index.ts:477-482 reads `openaiModel` via
`settings.get` and assigns to `llmModel` (stored as draft metadata). Same
SELECTION-array bug as PR #39 fixed in callOpenAI: without unwrap,
draft.llmModel would hold `["gpt-5.4-mini"]` instead of `"gpt-5.4-mini"`,
which could break later RuleBundle parses.

Add `.venv-chrome-auth` and `playwright/.auth` to .prettierignore — these
are runtime artifacts from chrome-auth-test verification infrastructure.

Gates: `npm run check` 4/4 PASS.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

Warning

Rate limit exceeded

@ComBba has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 31 minutes and 34 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 89affdcb-e278-4b42-aee9-f42ae671f545

📥 Commits

Reviewing files that changed from the base of the PR and between ddad44e and 2261d6e.

📒 Files selected for processing (2)
  • .prettierignore
  • src/server/index.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/openai-400-submit-handler-unwrap

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ComBba ComBba merged commit f04482c into main May 13, 2026
2 checks passed
@ComBba ComBba deleted the fix/openai-400-submit-handler-unwrap branch May 13, 2026 16:13
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the .prettierignore file to exclude diagnostic artifacts and TypeScript declaration files. Additionally, it modifies the llmModel retrieval logic in src/server/index.ts to correctly unwrap array-based model settings, ensuring consistency with other parts of the application and preventing metadata corruption in the draft bundle. I have no further feedback to provide.

ComBba added a commit that referenced this pull request May 15, 2026
…ler-unwrap

fix(openai): apply SELECTION-array unwrap to submit-handler llmModel (follow-up to #39)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant