chore(tui): remove dead branch cleanup code

- drop unused TUI helpers, test-only layout scaffolding, and stale public debug exports
- remove an unused profiler import and trim test-only coverage for deleted helpers
This commit is contained in:
Brooklyn Nicholson 2026-04-26 21:54:24 -05:00
parent 635948d0e0
commit ffa33e53f6
16 changed files with 9 additions and 57 deletions

View file

@ -220,7 +220,7 @@ export const opsCommands: SlashCommand[] = [
const [sub, ...rest] = text.split(/\s+/)
const query = rest.join(' ').trim()
const { rpc } = ctx.gateway
const { page, panel, sys } = ctx.transcript
const { panel, sys } = ctx.transcript
if (sub === 'list') {
rpc<SkillsListResponse>('skills.manage', { action: 'list' })

View file

@ -1,7 +1,7 @@
import { atom } from 'nanostores'
import { useSyncExternalStore } from 'react'
import { appendToolShelfMessage, isTodoDone } from '../lib/liveProgress.js'
import { isTodoDone } from '../lib/liveProgress.js'
import type { ActiveTool, ActivityItem, Msg, SubagentProgress, TodoItem } from '../types.js'
const buildTurnState = (): TurnState => ({
@ -64,9 +64,6 @@ export const archiveTodosAtTurnEnd = () => {
return [msg]
}
export const appendTurnSegment = (msg: Msg) =>
patchTurnState(state => ({ ...state, streamSegments: appendToolShelfMessage(state.streamSegments, msg) }))
export const resetTurnState = () => $turnState.set(buildTurnState())
export interface TurnState {

View file

@ -442,7 +442,7 @@ export function useMainApp(gw: GatewayClient) {
clipboardPasteRef.current = paste
const { dispatchSubmission, send, sendQueued, shellExec, submit } = useSubmission({
const { dispatchSubmission, send, sendQueued, submit } = useSubmission({
appendMessage,
composerActions,
composerRefs,

View file

@ -331,7 +331,7 @@ export function useSubmission(opts: UseSubmissionOptions) {
submitRef.current = submit
return { dispatchSubmission, send, sendQueued, shellExec, submit }
return { dispatchSubmission, send, sendQueued, submit }
}
export interface UseSubmissionOptions {