Browse Source

Force re-render on session model switch to keep displayed model current

Alvin Unreal 1 day ago
parent
commit
659df9f422
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/tui.ts

+ 0 - 7
src/tui.ts

@@ -373,13 +373,6 @@ const plugin: TuiPluginModule & { id: string } = {
       }
     }, 1000);
 
-    // The composer's model selector (bottom bar) only re-renders on user
-    // interaction. Force a re-render when the session model changes (e.g. a
-    // foreground fallback switched it) so the displayed model stays current.
-    api.event.on('session.next.model.switched', () => {
-      api.renderer.requestRender();
-    });
-
     api.lifecycle.onDispose(() => {
       clearInterval(renderTimer);
     });