spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

diff: the prompt hint reads the viewport's layout through a type that may lack it (#94843)Browse files
Alice T'Poteat authored on Sep 16, 2026 · GitHub committed on Sep 16, 2026 parent b782847 · commit 744fb6ab02ac
1 changed file+5 -2compared with b782847
Mmods/diff/hooks/register.ts
@@ -621,11 +621,14 @@
621621
622622 on('ui.render', { component: 'PromptHint' }, ($, e, next) => {
623623 if (isOnPaneSurface(e)) {
624- columns = e.viewport?.columns ?? columns
624+ const viewport: { columns?: number; isFullscreen?: boolean } | undefined =
625+ e.viewport
625626
627+ columns = viewport?.columns ?? columns
628+
626629 model = {
627630 ...model,
628- isFullscreen: e.viewport?.isFullscreen ?? model.isFullscreen,
631+ isFullscreen: viewport?.isFullscreen ?? model.isFullscreen,
629632 }
630633 }
631634