aboutsummaryrefslogtreecommitdiff
path: root/src/domains/screenshot.ts
diff options
context:
space:
mode:
authoramankumarsingh77 <amankumarsingh7702@gmail.com>2026-07-28 20:30:49 +0530
committerAman Kumar <145339995+amankumarsingh77@users.noreply.github.com>2026-08-02 19:12:46 +0530
commitb67faca60b21b0cf74d5c967f0f8d215ad601e93 (patch)
tree12e8580e1b88c3ce6a2d9157cfa678cb7a55a73c /src/domains/screenshot.ts
parenta6ec1d0915106b127affbd6b5fcc9efec48ef712 (diff)
refactor(domains): strip comment noise
Removes module banners, step markers, and comments restating the code. Keeps one-line notes for safeJs's trust boundary, the select-match null sentinels, the TUI width clamp, the single-window tab rule, the input synthesis quirks (char events, keyCode, mousemove, focus, compositor), the stale AX value, ignored-wrapper recursion, and isolated-tab routing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src/domains/screenshot.ts')
-rw-r--r--src/domains/screenshot.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/domains/screenshot.ts b/src/domains/screenshot.ts
index 2e9cfdc..04f0fa9 100644
--- a/src/domains/screenshot.ts
+++ b/src/domains/screenshot.ts
@@ -110,10 +110,7 @@ export const screenshotTool = defineBrowserTool({
maxHeightCells: 24,
filename: filePath,
});
- // Image's text fallback (when terminal lacks inline-image support) does
- // not respect the rendered width, so a long file path can blow past the
- // terminal width and crash the host TUI. Wrap the component to truncate
- // each rendered line to fit.
+ // Image's text fallback does not respect the rendered width, so an unwrapped long path can blow past the terminal width and crash the host TUI.
return {
invalidate: () => image.invalidate(),
render: (width: number) =>
@@ -151,7 +148,6 @@ export const captureWithCrosshair = async (
await rename(tmp, cap.data.path);
return ok({ path: cap.data.path });
} catch {
- // Crosshair overlay is best-effort; on failure return the plain screenshot.
return ok({ path: cap.data.path });
}
};