Skip to content

Topic/upstream/pr170 review fixes#176

Merged
everett4320 merged 8 commits intoOpenLAIR:redo-session-lifecycle-after-167-revertfrom
everett4320:topic/upstream/pr170-review-fixes
Apr 14, 2026
Merged

Topic/upstream/pr170 review fixes#176
everett4320 merged 8 commits intoOpenLAIR:redo-session-lifecycle-after-167-revertfrom
everett4320:topic/upstream/pr170-review-fixes

Conversation

@everett4320
Copy link
Copy Markdown
Collaborator

No description provided.

bbsngg and others added 8 commits April 12, 2026 17:17
Previously /btw was Claude-only. This extends the ephemeral side-question
overlay to Gemini (via direct generateContent API) and Codex (via OpenAI
Chat Completions API), both tool-free and session-independent.

- Extract shared BTW_SYSTEM_PROMPT and helpers into server/utils/btw.js
- Add runGeminiBtw() using non-streaming Gemini REST API
- Add runCodexBtw() bypassing Codex SDK with direct OpenAI API call
- Create unified POST /api/btw route with provider dispatch
- Update frontend to send provider field and select correct model
- Keep legacy /api/claude/btw endpoint for backward compatibility

Made-with: Cursor
Lets users point /btw (and other Gemini REST calls) at a self-hosted or
proxy endpoint instead of the hardcoded Google base URL.
feat: add /btw side-question support for Gemini and Codex providers
- Drop obsolete full-page file preview overlay block (superseded by
  in-chat overlay in this PR)
- Cast diffInfo narrow to DiffInfo | null to satisfy typecheck
…r-modes

Add reader modes and chat-area file overlay
…res)

Merge upstream/main into topic/upstream/pr170-review-fixes to unblock
the PR merge. Conflicts arose from two upstream PRs landing on main
after our branch diverged:
- OpenLAIR#171 feat/btw-gemini-codex: added /btw side-question support for
  Gemini and Codex; resolved by keeping btw handler block from main
  before our existing builtin command handler in useChatComposerState.ts,
  and adding the btw/CODEX_MODELS imports alongside our
  buildCodexSessionCreatedEvent import in openai-codex.js.
- OpenLAIR#173 feat/file-preview-reader-modes: auto-merged cleanly.

All 149 tests pass.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@everett4320 everett4320 merged commit b0700b0 into OpenLAIR:redo-session-lifecycle-after-167-revert Apr 14, 2026
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.

4 participants