chore(web): extract App.tsx's server commands into useServerCommands
Phase-2 step 4 of the App.tsx decomposition (#2155, under #2129/#2126). Every command the screens issue against the live server moves into `useServerCommands`: calling a tool, getting a prompt, reading and subscribing to a resource, completing an argument, cancelling a task or a call, setting either log level, refreshing or paging a list, and flipping the pagination mode. All of them route through the command-scoped auth recovery `useOAuthRecovery` publishes, which is why this cluster cannot precede the OAuth one. The three in-flight result panels move with them, behind a small `useResultPanels` in the same file — split out only because of call order, the same reason `useHandshakeTelemetry` sits beside `useConnectionLifecycle`: `useOAuthRecovery` drops those panels on a session reset and routes a step-up failure into whichever one issued the command, and it runs before the commands hook. The move is inert — no behavior change, #2095's per-server pagination override included. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013hzwzS8UvBsr4yZm7o7sev Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
7a3a30b148
commit
00f1733abe
1 changed files with 2254 additions and 681 deletions
1230
clients/web/src/hooks/useServerCommands.test.tsx
Normal file
1230
clients/web/src/hooks/useServerCommands.test.tsx
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue