From 9e20e28028d014513bb06897145d0986945fee25 Mon Sep 17 00:00:00 2001 From: Jiaqing Liang Date: Tue, 9 Jun 2026 16:43:05 +0800 Subject: [PATCH] fix: widen window & collapse sidebar to work around streamlit narrow-viewport bug --- frontends/stapp.py | 2 +- launch.pyw | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/stapp.py b/frontends/stapp.py index 5c49c7f3..ab680160 100644 --- a/frontends/stapp.py +++ b/frontends/stapp.py @@ -19,7 +19,7 @@ from continue_cmd import handle_frontend_command, reset_conversation, list_sessi from btw_cmd import handle_frontend_command as btw_handle_frontend from export_cmd import last_assistant_text, export_to_temp, wrap_for_clipboard -st.set_page_config(page_title="Cowork", layout="wide") +st.set_page_config(page_title="Cowork", layout="wide", initial_sidebar_state="collapsed") LANG = os.environ.get('GA_LANG', 'zh') if LANG not in ('zh', 'en'): LANG = 'zh' diff --git a/launch.pyw b/launch.pyw index 74658a4e..7e5c466b 100644 --- a/launch.pyw +++ b/launch.pyw @@ -1,6 +1,6 @@ import webview, threading, subprocess, sys, time, os, ctypes, atexit, socket, random -WINDOW_WIDTH, WINDOW_HEIGHT, RIGHT_PADDING, TOP_PADDING = 600, 900, 0, 100 +WINDOW_WIDTH, WINDOW_HEIGHT, RIGHT_PADDING, TOP_PADDING = 1200, 900, 0, 50 script_dir = os.path.dirname(os.path.abspath(__file__)) frontends_dir = os.path.join(script_dir, "frontends")