From 75ed7f06ddb35cbccb6fac50cdba2249072955fc Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Sun, 20 Sep 2026 23:09:59 -0400 Subject: [PATCH] style(mobile): put every document import back in its import block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pullfrog caught `fit-scale`, where `scheduleDocumentFrame` sat below `MIN_FIT_COLS`. A statement walk over all 41 non-test modules under `document/` — the tree, not a grep, so a multi-line import or one inside a comment cannot hide — found one more: `host-notify` split its two `document-host-seams` lines around the re-export between them. Both imports moved up; the re-export stays where it was, below the block, with its comment in the present tense. The sweep reports no misplaced import across the 41 modules now. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb --- mobile/src/terminal/document/fit-scale.ts | 2 +- mobile/src/terminal/document/host-notify.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/src/terminal/document/fit-scale.ts b/mobile/src/terminal/document/fit-scale.ts index 714efbe99d5..563dc418bb0 100644 --- a/mobile/src/terminal/document/fit-scale.ts +++ b/mobile/src/terminal/document/fit-scale.ts @@ -7,10 +7,10 @@ import { updateTransform } from './viewport-transform' import type { TerminalDocumentScope } from './document-scope' +import { scheduleDocumentFrame } from './document-frame-registry' /** The narrowest grid a fit or a text-scale change will fit to. */ export const MIN_FIT_COLS = 20 -import { scheduleDocumentFrame } from './document-frame-registry' export function getCellHeight(scope: TerminalDocumentScope) { if (!scope.term || !scope.term._core) { diff --git a/mobile/src/terminal/document/host-notify.ts b/mobile/src/terminal/document/host-notify.ts index e2fcad15888..43c1042b5a9 100644 --- a/mobile/src/terminal/document/host-notify.ts +++ b/mobile/src/terminal/document/host-notify.ts @@ -1,9 +1,9 @@ import type { TerminalDocumentScope } from './document-scope' +import type { TerminalEngineError } from './document-host-seams' // Declared beside the seam that hands it out, and re-exported here because this is where the -// document's readers have always named it. +// document's readers name it. export type { TerminalEngineError } from './document-host-seams' -import type { TerminalEngineError } from './document-host-seams' /** * The postMessage bridge to the host, and the engine error reporting that rides on it.