Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/specs/multi-window-cleanup/plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Multi-Window Cleanup Plan

1. Rename renderer entry from `shell` to `browser` and delete tooltip overlay.
2. Convert YoBrowser from single-window multi-tab to multi-window single-page.
3. Remove tab shortcuts and tab UI, keep only multi-window behavior.
4. Short-circuit tab-dependent legacy MCP helpers.
5. Run format, i18n, lint, typecheck, targeted tests, and build.
48 changes: 48 additions & 0 deletions docs/specs/multi-window-cleanup/spec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Multi-Window Cleanup Spec

## Goal

Remove the last shell and multi-tab browser architecture remnants and converge on a clean
multi-window model:

- app windows render the chat UI directly
- browser windows render dedicated browser chrome directly
- each browser window owns exactly one page `WebContentsView`
- tooltip overlay is removed completely

## Decisions

### Window model

- `WindowPresenter` exposes explicit app-window and browser-window creation APIs.
- `createShellWindow` remains only as a deprecated compatibility wrapper.
- Browser windows load `src/renderer/browser/index.html`.
- Chat windows load `src/renderer/index.html#/chat`.

### YoBrowser model

- `YoBrowserPresenter` manages multiple browser windows.
- Each browser window has one browser chrome renderer and one page view.
- There is no tab list, no tab activation, no tab reordering, and no tab shortcuts.
- Browser APIs use `windowId` for addressing.

### Renderer model

- The old `src/renderer/shell` entry is renamed to `src/renderer/browser`.
- Browser chrome keeps only:
- window controls
- address bar
- navigation controls
- create-new-browser-window action
- Tooltip overlay entry/runtime is deleted.

### Legacy handling

- `conversationSearchServer` and `meetingServer` are intentionally disabled until they are rebuilt
against the window-native architecture.
- Deprecated browser tool names remain as thin aliases only in the handler.

## Non-Goals

- Rebuilding every legacy session/thread abstraction in this pass.
- Introducing new UI entities beyond the required browser-window state.
11 changes: 11 additions & 0 deletions docs/specs/multi-window-cleanup/tasks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Multi-Window Cleanup Tasks

- [x] Move renderer entry from `shell` to `browser`
- [x] Delete tooltip overlay entry from renderer tree
- [ ] Update build aliases and inputs
- [ ] Simplify browser renderer chrome
- [ ] Rewrite YoBrowser window model
- [ ] Split app-window and browser-window creation
- [ ] Remove tab shortcuts from main/settings
- [ ] Disable legacy MCP tab helpers
- [ ] Verify format, i18n, lint, typecheck, tests, build
7 changes: 3 additions & 4 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineConfig({
resolve: {
alias: {
'@': resolve('src/renderer/src'),
'@shell': resolve('src/renderer/shell'),
'@browser': resolve('src/renderer/browser'),
'@shared': resolve('src/shared'),
"@shadcn": resolve('src/shadcn'),
vue: 'vue/dist/vue.esm-bundler.js'
Expand Down Expand Up @@ -92,7 +92,7 @@ export default defineConfig({
vueDevTools(
{
appendTo:'src/renderer/src/main.ts'
// appendTo:'src/renderer/shell/main.ts'
// appendTo:'src/renderer/browser/main.ts'
}
)
],
Expand All @@ -107,8 +107,7 @@ export default defineConfig({
cssCodeSplit: false,
rollupOptions: {
input: {
shell: resolve('src/renderer/shell/index.html'),
shellTooltipOverlay: resolve('src/renderer/shell/tooltip-overlay/index.html'),
browser: resolve('src/renderer/browser/index.html'),
index: resolve('src/renderer/index.html'),
floating: resolve('src/renderer/floating/index.html'),
splash: resolve('src/renderer/splash/index.html'),
Expand Down
166 changes: 164 additions & 2 deletions resources/model-db/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -42933,6 +42933,40 @@
},
"type": "chat"
},
{
"id": "gpt-5.4",
"name": "GPT-5.4",
"display_name": "GPT-5.4",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 400000,
"output": 128000
},
"temperature": false,
"tool_call": true,
"reasoning": {
"supported": true,
"default": true
},
"attachment": false,
"open_weights": false,
"knowledge": "2025-08-31",
"release_date": "2026-03-05",
"last_updated": "2026-03-05",
"cost": {
"input": 0,
"output": 0
},
"type": "chat"
Comment thread
zerob13 marked this conversation as resolved.
},
{
"id": "gpt-5.1-codex",
"name": "GPT-5.1-Codex",
Expand Down Expand Up @@ -131721,8 +131755,8 @@
]
},
"limit": {
"context": 131072,
"output": 131072
"context": 262144,
"output": 262144
},
"tool_call": true,
"reasoning": {
Expand Down Expand Up @@ -134896,6 +134930,29 @@
},
"type": "chat"
},
{
"id": "gpt-5.3-chat-latest",
"name": "gpt-5.3-chat-latest",
"display_name": "gpt-5.3-chat-latest",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 128000,
"output": 16000
},
"tool_call": true,
"reasoning": {
"supported": false
},
"type": "chat"
},
{
"id": "gpt-5.3-codex",
"name": "gpt-5.3-codex",
Expand All @@ -134920,6 +134977,54 @@
},
"type": "chat"
},
{
"id": "gpt-5.4",
"name": "gpt-5.4",
"display_name": "gpt-5.4",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1050000,
"output": 128000
},
"tool_call": true,
"reasoning": {
"supported": true,
"default": true
},
"type": "chat"
},
{
"id": "gpt-5.4-pro",
"name": "gpt-5.4-pro",
"display_name": "gpt-5.4-pro",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1050000,
"output": 128000
},
"tool_call": true,
"reasoning": {
"supported": true,
"default": true
},
"type": "chat"
},
{
"id": "grok-3",
"name": "grok-3",
Expand Down Expand Up @@ -139268,6 +139373,63 @@
},
"type": "chat"
},
{
"id": "x-ai/grok-4.2-fast",
"name": "xAI: Grok 4.2 Fast",
"display_name": "xAI: Grok 4.2 Fast",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 2000000,
"output": 2000000
},
"tool_call": false,
"reasoning": {
"supported": true,
"default": true
},
"cost": {
"input": 2,
"output": 6,
"cache_read": 0.2
},
"type": "chat"
},
{
"id": "x-ai/grok-4.2-fast-non-reasoning",
"name": "xAI: Grok 4.2 Fast Non Reasoning",
"display_name": "xAI: Grok 4.2 Fast Non Reasoning",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 2000000,
"output": 2000000
},
"tool_call": false,
"reasoning": {
"supported": false
},
"cost": {
"input": 2,
"output": 6,
"cache_read": 0.2
},
"type": "chat"
},
{
"id": "x-ai/grok-code-fast-1",
"name": "xAI: Grok Code Fast 1",
Expand Down
Loading