You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session bleeding / wrong context after /compact with VPN #41519
I doubt that was a hallucination. I think it was someone's project. Does it look like?
Objective
Building a Tauri v2 + React desktop Pomodoro timer app called "Focus" with task management, daily notes, settings, sound notifications, and statistics tracking
Evolving from a basic timer into a full-featured focus/productivity tool with daily cycle reset, task persistence, and comprehensive UI polish
Important Details
Tech stack: Tauri v2.5.3 (Rust backend with tauri-plugin-shell v2.2.1), React + TypeScript + Vite frontend
Rust backend runs a child process (powershell -NoProfile -Command "& 'C:\Program Files\VideoLAN\VLC\vlc.exe' --intf dummy --play-and-exit ") to play notification sounds via Shell plugin's Command.create().spawn()
App was migrated from Tauri v1 to v2 — tauri.conf.json must have "withGlobalTauri": true for window.TAURI to exist at runtime
All window.TAURI access must be wrapped in typeof window !== 'undefined' && window.TAURI guards to avoid crash on first load before IPC binding
tauri-plugin-shell v2 requires explicit permission in capabilities/default.json — without "shell:default" capability the app crashes on any window.TAURI access (blank screen)
Sound settings persist via localStorage key focus-sound-settings (migrated from focus-settings which had nested sound object); migration code in App.tsx moves old format to new
Settings schema v2 (current): { volume, playOnWorkComplete, playOnBreakComplete, playOnSessionComplete, selectedAlarm } — flat structure
Alarm sounds available: alarm, alarm2, alarm3, alarm4, arpeggio, digital-watch, digital-watch2, ringtone, ringtone2, ringtone3, ringtone4, ringtone5, success-chime
Sound files are .mp3 files placed directly in src/assets/ (NOT in public/ folder — Electron-specific preload references removed, Tauri uses resolveResource or direct asset imports)
Tasks persist via localStorage key focus-tasks; structure: { id, title, completed, createdAt, totalPomodoros, completedPomodoros }
Session history persists via localStorage key focus-session-history
Daily notes persist via localStorage key focus-daily-notes
Settings persist via localStorage key focus-sound-settings
SettingsModal component was fully rewritten to accept SoundSettings interface with individual onSettingChange prop (removed the complex initialSettings deep-comparison pattern)
Session reset logic: When both dailyFocusMinutes and dailyPomodoros are 0, sessions reset to 0 for the next day
Work State
Completed
Tauri v2 migration: Cargo.toml, tauri.conf.json, lib.rs, main.rs, App.tsx all updated
Rust notification system: shell.rs uses tauri-plugin-shell v2 with Command.create().spawn() to play sounds via VLC
capabilities/default.json created with ["core:default", "shell:default"] — critical fix for blank screen issue
SoundSettings interface defined with flat schema; defaultSettings exported
getSettings()/saveSettings() in notification.ts handle v2 flat format
App.tsx migration logic moves old nested sound format to flat v2 format
SettingsModal fully rewritten: individual onSettingChange callbacks, volume slider, checkboxes for work/break/session completion, alarm selector with visual preview
TimerControls updated with isWork prop, play icons, and alarm preview (playAlarm)
useTimer hook updated with session reset logic for daily focus/pomodoro targets
TaskManager rewritten with: session completion tracking, inline "Done" button, reset (↺) button, circular progress indicator (SVG), "Add Task" button always visible
DailyNotes rewritten with: text area instead of bullet list, date navigation with ⌂ "Today" button, date display
Header fully rewritten with: current date in YYYY-MM-DD format, stats modal, settings modal, all properly positioned
All assets moved to src/assets/ (alarm sounds, timer.mp3, victory.wav)
App.css fully rewritten: dark theme with gradient backgrounds, task list styling, timer glow animation, circular progress, stats modal grid, header layout
Build fixes: cargo-tauri.exe moved to C:\Users\Admin.cargo\bin, Rust toolchain stable-x86_64-pc-windows-msvc added
index.html fixed: removed duplicate
, duplicate <script type="module">, duplicate for Google Fonts
vite.config.ts updated with clearScreen: false
getTheme() updated to use window.matchMedia('(prefers-color-scheme: dark)') instead of deprecated remote.app.getSystemTheme()
Active
Build completed successfully: npm run build produced dist/ folder (2,063 KB)
App loads and runs correctly with task management, timer, sound settings all functional
Blocked
(none)
Next Move
Run the app to verify all features work end-to-end (task completion, daily reset, sound settings persistence across restarts)
Consider adding more polish: animations for task completion, keyboard shortcuts, export/import data
Package for distribution using npm run tauri build
Relevant Files
src-tauri/src/shell.rs: Rust shell command handler — plays notification sounds via VLC
src-tauri/src/lib.rs: Tauri plugin registration (tauri_plugin_shell::init())
src-tauri/src/main.rs: Entry point, calls focus_app_lib::run()
src-tauri/capabilities/default.json: Permissions config — must include "shell:default"
src-tauri/Cargo.toml: Dependencies — tauri = "2.5.3", tauri-plugin-shell = "2.2.1"
src-tauri/tauri.conf.json: withGlobalTauri: true for runtime access
src/App.tsx: Root component — migration logic, settings/task/notes state management, timer integration
src/App.css: All styling — dark theme, gradients, task list, timer glow, stats modal
src/components/Header.tsx: Date display, settings/stats buttons, modals
src/components/SettingsModal.tsx: Sound settings UI — volume, toggles, alarm selector
src/components/TaskManager.tsx: Task CRUD, session tracking, circular progress, reset functionality
src/components/DailyNotes.tsx: Date-navigable text notes with ⌂ today button
src/components/StatsModal.tsx: Session history statistics
src/components/TimerControls.tsx: Timer buttons, mode switching, alarm preview
src/components/Timer.tsx: Main timer display
src/components/ProgressRing.tsx: SVG circular progress indicator
src/components/QueueDisplay.tsx: Queue visualization
src/components/Notification.tsx: Toast notifications
src/hooks/useTimer.ts: Timer logic — session reset on daily targets met
src/utils/notification.ts: playAlarm(), playVictory(), playSound() — Shell plugin v2 API, settings management
src/utils/storage.ts: loadTasks(), saveTasks() — localStorage persistence
src/utils/sounds.ts: Sound definitions
src/assets/: Alarm sound files (.mp3), timer.mp3, victory.wav
index.html: Fixed duplicate elements
vite.config.ts: Build config with clearScreen: false
package.json: Dependencies — @tauri-apps/[email protected], @tauri-apps/[email protected], [email protected]
Routing / fallback issue (without VPN)
Without VPN: Any request to any model from OpenCode Go returns:
Forbidden: {"model":"mimo-v2.5"}
This happens consistently regardless of which model I select in the UI. It appears the request is being routed to or falling back to mimo-v2.5, which then returns 403.
With VPN enabled: The same API key and model selection works immediately. The handshake succeeds and the session starts normally.
Session affinity after VPN disconnect
After starting the session with VPN, I disabled the VPN.
Crucially: The Forbidden error did not return. Requests continued to work normally.
This suggests sticky routing / session affinity: once the initial handshake succeeds through the VPN-routed endpoint, subsequent requests keep hitting the same backend instance even after the VPN is off.
Context bleeding during /compact
While the VPN was still active, I ran /compact.
The compaction summary was completely foreign — it described a project I am not working on (different stack, different application), exactly as described in issue Compaction hallucinating project details instead of compacting after update to latest version #37047.
After disconnecting the VPN, the session continued to work, but my own project context was lost and replaced by this hallucinated/foreign summary.
Prior occurrence (last week)
This same pattern happened to me last week as well:
Without VPN: Forbidden: {"model":"mimo-v2.5"}
With VPN: worked normally
At that time, it was a brand new session with no prior context, so I never ran /compact. The bug did not manifest because there was nothing to compact. I only noticed the routing issue, not the context corruption.
Summary
The VPN is not the root cause — it is merely a trigger that allows the client to reach a backend instance where the selected model is available. However, that same instance appears to be affected by the compaction bug Compaction hallucinating project details instead of compacting after update to latest version #37047, causing /compact to pull in another user's (or hallucinated) session context. The sticky routing then keeps me on that corrupted session even after the VPN is disabled.
Environment
OpenCode Desktop: 1.18.0
Provider: OpenCode Go
OS: Windows
VPN: [your VPN provider/location if you want to mention it]
Expected behavior
Without VPN, models from OpenCode Go should be reachable without falling back to mimo-v2.5 and returning 403.
/compact should never replace the current session context with a foreign or hallucinated project summary.
Activity
github-actions commentedon Aug 10, 2026
This issue might be a duplicate of existing issues. Please check:
hongkoaa23 commentedon Aug 10, 2026
I doubt that was a hallucination. I think it was someone's project. Does it look like?
Objective
Building a Tauri v2 + React desktop Pomodoro timer app called "Focus" with task management, daily notes, settings, sound notifications, and statistics tracking
Evolving from a basic timer into a full-featured focus/productivity tool with daily cycle reset, task persistence, and comprehensive UI polish
Important Details
Tech stack: Tauri v2.5.3 (Rust backend with tauri-plugin-shell v2.2.1), React + TypeScript + Vite frontend
Rust backend runs a child process (powershell -NoProfile -Command "& 'C:\Program Files\VideoLAN\VLC\vlc.exe' --intf dummy --play-and-exit ") to play notification sounds via Shell plugin's Command.create().spawn()
App was migrated from Tauri v1 to v2 — tauri.conf.json must have "withGlobalTauri": true for window.TAURI to exist at runtime
All window.TAURI access must be wrapped in typeof window !== 'undefined' && window.TAURI guards to avoid crash on first load before IPC binding
tauri-plugin-shell v2 requires explicit permission in capabilities/default.json — without "shell:default" capability the app crashes on any window.TAURI access (blank screen)
Sound settings persist via localStorage key focus-sound-settings (migrated from focus-settings which had nested sound object); migration code in App.tsx moves old format to new
Settings schema v2 (current): { volume, playOnWorkComplete, playOnBreakComplete, playOnSessionComplete, selectedAlarm } — flat structure
Alarm sounds available: alarm, alarm2, alarm3, alarm4, arpeggio, digital-watch, digital-watch2, ringtone, ringtone2, ringtone3, ringtone4, ringtone5, success-chime
Sound files are .mp3 files placed directly in src/assets/ (NOT in public/ folder — Electron-specific preload references removed, Tauri uses resolveResource or direct asset imports)
Tasks persist via localStorage key focus-tasks; structure: { id, title, completed, createdAt, totalPomodoros, completedPomodoros }
Session history persists via localStorage key focus-session-history
Daily notes persist via localStorage key focus-daily-notes
Settings persist via localStorage key focus-sound-settings
SettingsModal component was fully rewritten to accept SoundSettings interface with individual onSettingChange prop (removed the complex initialSettings deep-comparison pattern)
Session reset logic: When both dailyFocusMinutes and dailyPomodoros are 0, sessions reset to 0 for the next day
Work State
Completed
Tauri v2 migration: Cargo.toml, tauri.conf.json, lib.rs, main.rs, App.tsx all updated
Rust notification system: shell.rs uses tauri-plugin-shell v2 with Command.create().spawn() to play sounds via VLC
capabilities/default.json created with ["core:default", "shell:default"] — critical fix for blank screen issue
SoundSettings interface defined with flat schema; defaultSettings exported
getSettings()/saveSettings() in notification.ts handle v2 flat format
App.tsx migration logic moves old nested sound format to flat v2 format
SettingsModal fully rewritten: individual onSettingChange callbacks, volume slider, checkboxes for work/break/session completion, alarm selector with visual preview
TimerControls updated with isWork prop, play icons, and alarm preview (playAlarm)
useTimer hook updated with session reset logic for daily focus/pomodoro targets
TaskManager rewritten with: session completion tracking, inline "Done" button, reset (↺) button, circular progress indicator (SVG), "Add Task" button always visible
DailyNotes rewritten with: text area instead of bullet list, date navigation with ⌂ "Today" button, date display
Header fully rewritten with: current date in YYYY-MM-DD format, stats modal, settings modal, all properly positioned
All assets moved to src/assets/ (alarm sounds, timer.mp3, victory.wav)
App.css fully rewritten: dark theme with gradient backgrounds, task list styling, timer glow animation, circular progress, stats modal grid, header layout
Build fixes: cargo-tauri.exe moved to C:\Users\Admin.cargo\bin, Rust toolchain stable-x86_64-pc-windows-msvc added
index.html fixed: removed duplicate
vite.config.ts updated with clearScreen: false
getTheme() updated to use window.matchMedia('(prefers-color-scheme: dark)') instead of deprecated remote.app.getSystemTheme()
Active
Build completed successfully: npm run build produced dist/ folder (2,063 KB)
App loads and runs correctly with task management, timer, sound settings all functional
Blocked
(none)
Next Move
Run the app to verify all features work end-to-end (task completion, daily reset, sound settings persistence across restarts)
Consider adding more polish: animations for task completion, keyboard shortcuts, export/import data
Package for distribution using npm run tauri build
Relevant Files
src-tauri/src/shell.rs: Rust shell command handler — plays notification sounds via VLC
src-tauri/src/lib.rs: Tauri plugin registration (tauri_plugin_shell::init())
src-tauri/src/main.rs: Entry point, calls focus_app_lib::run()
src-tauri/capabilities/default.json: Permissions config — must include "shell:default"
src-tauri/Cargo.toml: Dependencies — tauri = "2.5.3", tauri-plugin-shell = "2.2.1"
src-tauri/tauri.conf.json: withGlobalTauri: true for runtime access
src/App.tsx: Root component — migration logic, settings/task/notes state management, timer integration
src/App.css: All styling — dark theme, gradients, task list, timer glow, stats modal
src/components/Header.tsx: Date display, settings/stats buttons, modals
src/components/SettingsModal.tsx: Sound settings UI — volume, toggles, alarm selector
src/components/TaskManager.tsx: Task CRUD, session tracking, circular progress, reset functionality
src/components/DailyNotes.tsx: Date-navigable text notes with ⌂ today button
src/components/StatsModal.tsx: Session history statistics
src/components/TimerControls.tsx: Timer buttons, mode switching, alarm preview
src/components/Timer.tsx: Main timer display
src/components/ProgressRing.tsx: SVG circular progress indicator
src/components/QueueDisplay.tsx: Queue visualization
src/components/Notification.tsx: Toast notifications
src/hooks/useTimer.ts: Timer logic — session reset on daily targets met
src/utils/notification.ts: playAlarm(), playVictory(), playSound() — Shell plugin v2 API, settings management
src/utils/storage.ts: loadTasks(), saveTasks() — localStorage persistence
src/utils/sounds.ts: Sound definitions
src/assets/: Alarm sound files (.mp3), timer.mp3, victory.wav
index.html: Fixed duplicate elements
vite.config.ts: Build config with clearScreen: false
package.json: Dependencies — @tauri-apps/[email protected], @tauri-apps/[email protected], [email protected]
hongkoaa23 commentedon Aug 10, 2026
Without VPN: Any request to any model from OpenCode Go returns:
Forbidden: {"model":"mimo-v2.5"}
This happens consistently regardless of which model I select in the UI. It appears the request is being routed to or falling back to mimo-v2.5, which then returns 403.
With VPN enabled: The same API key and model selection works immediately. The handshake succeeds and the session starts normally.
After starting the session with VPN, I disabled the VPN.
Crucially: The Forbidden error did not return. Requests continued to work normally.
This suggests sticky routing / session affinity: once the initial handshake succeeds through the VPN-routed endpoint, subsequent requests keep hitting the same backend instance even after the VPN is off.
While the VPN was still active, I ran /compact.
The compaction summary was completely foreign — it described a project I am not working on (different stack, different application), exactly as described in issue Compaction hallucinating project details instead of compacting after update to latest version #37047.
After disconnecting the VPN, the session continued to work, but my own project context was lost and replaced by this hallucinated/foreign summary.
This same pattern happened to me last week as well:
Without VPN: Forbidden: {"model":"mimo-v2.5"}
With VPN: worked normally
At that time, it was a brand new session with no prior context, so I never ran /compact. The bug did not manifest because there was nothing to compact. I only noticed the routing issue, not the context corruption.
Summary
The VPN is not the root cause — it is merely a trigger that allows the client to reach a backend instance where the selected model is available. However, that same instance appears to be affected by the compaction bug Compaction hallucinating project details instead of compacting after update to latest version #37047, causing /compact to pull in another user's (or hallucinated) session context. The sticky routing then keeps me on that corrupted session even after the VPN is disabled.
Environment
OpenCode Desktop: 1.18.0
Provider: OpenCode Go
OS: Windows
VPN: [your VPN provider/location if you want to mention it]
Expected behavior
Without VPN, models from OpenCode Go should be reachable without falling back to mimo-v2.5 and returning 403.
/compact should never replace the current session context with a foreign or hallucinated project summary.
github-actions commentedon Oct 11, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.