diff --git a/frontend/src/App.vue b/frontend/src/App.vue index e98ef44..9311f37 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -85,6 +85,13 @@ const keyboardVisible = ref(false) // Virtual keyboard visible // Whether any terminal exists (T1+) const hasTerminals = computed(() => sessionState.terminalRegistry.length > 0) +// Whether terminal 1 is the currently active terminal +const isT1Active = computed(() => { + const reg = sessionState.terminalRegistry + if (!reg.length) return false + return reg[0].transcriptSessionId === transcriptDebugRef.value?.activeTerminalSessionId +}) + // Extra terminals (T2-T5) from Pinia store — fully reactive, no template ref dependency const extraTerminals = computed(() => { const reg = sessionState.terminalRegistry @@ -366,7 +373,7 @@ watch(() => route.name, (newPage) => {