Skip to content

Commit ebc9ae5

Browse files
kzysclaude
andcommitted
oc: set the startup workaround variables
Both are undocumented, from anomalyco/opencode#14965. OTUI_PALETTE_IDLE_TIMEOUT_MS shortens the blocking terminal palette query, and OPENCODE_FAST_BOOT skips the initial loading screen. Neither measured much here, but they cost nothing and help on slow terminals. Co-Authored-By: Claude Opus 5 <[email protected]>
1 parent 9584ea5 commit ebc9ae5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎bin/oc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ set -euo pipefail
44
# opencode's installer drops the binary here, outside PATH.
55
PATH=$PATH:$HOME/.opencode/bin
66

7+
# Startup workarounds from anomalyco/opencode#14965. Both binaries read them.
8+
export OTUI_PALETTE_IDLE_TIMEOUT_MS=${OTUI_PALETTE_IDLE_TIMEOUT_MS-1}
9+
export OPENCODE_FAST_BOOT=${OPENCODE_FAST_BOOT-1}
10+
711
# -2 runs the 2.0 preview binary, which starts faster.
812
bin=opencode
913
if [[ "${1:-}" == "-2" ]]; then

0 commit comments

Comments
 (0)