mirror of
https://github.com/langchain-ai/openwork.git
synced 2026-07-19 14:43:32 -04:00
[PR #35] [MERGED] feat: add gemini-3-flash support and comprehensive lint fixes #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/openwork/pull/35
Author: @Dhineshkumaran
Created: 1/18/2026
Status: ✅ Merged
Merged: 1/19/2026
Merged by: @hntrl
Base:
main← Head:main📝 Commits (1)
29751fafeat: add gemini-3-flash support and comprehensive lint fixes📊 Changes
24 files changed (+185 additions, -177 deletions)
View changed files
📝
bin/cli.js(+1 -0)📝
electron.vite.config.ts(+2 -2)📝
src/main/ipc/threads.ts(+2 -2)📝
src/main/storage.ts(+1 -1)📝
src/renderer/src/components/chat/ApiKeyDialog.tsx(+6 -6)📝
src/renderer/src/components/chat/ChatContainer.tsx(+9 -8)📝
src/renderer/src/components/chat/ContextUsageIndicator.tsx(+10 -5)📝
src/renderer/src/components/chat/MessageBubble.tsx(+4 -4)📝
src/renderer/src/components/chat/ModelSwitcher.tsx(+25 -34)📝
src/renderer/src/components/chat/StreamingMarkdown.tsx(+1 -1)📝
src/renderer/src/components/chat/ToolCallRenderer.tsx(+26 -26)📝
src/renderer/src/components/chat/WorkspacePicker.tsx(+2 -27)📝
src/renderer/src/components/settings/SettingsDialog.tsx(+5 -5)📝
src/renderer/src/components/tabs/BinaryFileViewer.tsx(+3 -3)📝
src/renderer/src/components/tabs/FileViewer.tsx(+11 -11)📝
src/renderer/src/components/tabs/ImageViewer.tsx(+28 -24)📝
src/renderer/src/components/tabs/MediaViewer.tsx(+1 -1)📝
src/renderer/src/components/tabs/PDFViewer.tsx(+3 -3)📝
src/renderer/src/components/tabs/TabBar.tsx(+5 -5)📝
src/renderer/src/components/tabs/TabbedPanel.tsx(+1 -1)...and 4 more files
📄 Description
Description
This PR adds support for
gemini-3-flashand other recent Gemini models to the context awareness system, and performs a comprehensive linting pass to improve code quality and type safety across the application.Detailed Changes
Feature: Gemini 3 Support
ContextUsageIndicator: Added explicit context window configurations forgemini-3-flash-previewandgemini-2.5-flash-lite(and their pro variants), ensuring accurate token usage tracking for these new models.Refactoring & Performance
react-refresh/only-export-components). The selectWorkspaceFolder helper utility was moved to a separate file: src/renderer/src/lib/workspace-utils.ts.useEffectcalls that were causing cascading renders and replaced them with derived state.Lint Fixes (ESLint Cleanup)
Addressed extensive
explicit-function-return-typeandno-unused-varslint errors across the codebase:ImageViewer,MediaViewer,PDFViewer,BinaryFileViewer, and TabBar.electron.vite.config.ts.Related Issue
Fixes #36
Type of Change
Checklist
Additional Notes
This fixes the lint error in #17 pull request. 👍
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.