diff --git a/CODEX.md b/CODEX.md index b28423a..14f77c6 100644 --- a/CODEX.md +++ b/CODEX.md @@ -165,6 +165,7 @@ Use the repository rule file as the project-level source of truth for coding-age - Read relevant code and docs before editing. - Check `git status --short` before edits. - Treat existing uncommitted changes as user work; do not revert them unless explicitly requested. +- Unless the user explicitly asks for direct code or file changes, first explain the proposed approach and wait for the user to decide whether to execute, continue, revise, or stop. - Before writing files, explain the goal understanding, files to touch, implementation plan, risks, and validation path, then wait for user confirmation. - Skip the confirmation gate only when the user's current request clearly authorizes direct modification, such as "可以直接修改", "无需确认", "直接执行", or equivalent wording. - Keep edits small and task-scoped. diff --git a/xr_rm_bringup/tools/launcher_ui.py b/xr_rm_bringup/tools/launcher_ui.py index cca5d86..314ed24 100755 --- a/xr_rm_bringup/tools/launcher_ui.py +++ b/xr_rm_bringup/tools/launcher_ui.py @@ -35,6 +35,7 @@ SAMPLE_SENDER_SECONDS = "30" SAMPLE_SENDER_STAGGERED_SECONDS = "60" XROBOTOOLKIT_BRIDGE_HZ = "90" XROBOTOOLKIT_BRIDGE_EXECUTABLE = "xrobotoolkit_to_udp_bridge" +TERMINAL_SCROLLBACK_LINES = 2000 SAMPLE_SENDER_ARGS = ( f"--host 127.0.0.1 --port {DEFAULT_PORT} " "--pattern axis_sweep --amplitude 0.5 " @@ -1062,7 +1063,8 @@ class LauncherApp: "[keybindings]", "[profiles]", " [[default]]", - " scrollback_infinite = True", + " scrollback_infinite = False", + f" scrollback_lines = {TERMINAL_SCROLLBACK_LINES}", "[layouts]", f" [[{layout_name}]]", " [[[window0]]]", @@ -1117,7 +1119,8 @@ class LauncherApp: "[keybindings]", "[profiles]", " [[default]]", - " scrollback_infinite = True", + " scrollback_infinite = False", + f" scrollback_lines = {TERMINAL_SCROLLBACK_LINES}", "[layouts]", f" [[{layout_name}]]", " [[[window0]]]",