CompactBoundaryMessage.tsx
components/messages/CompactBoundaryMessage.tsx
18
Lines
2275
Bytes
1
Exports
4
Imports
10
Keywords
What this is
This page documents one file from the repository and includes its full source so you can read it without leaving the docs site.
Beginner explanation
This file is one piece of the larger system. Its name, directory, imports, and exports show where it fits. Start by reading the exports and related files first.
How it is used
Start from the exports list and related files. Those are the easiest clues for where this file fits into the system.
Expert explanation
Architecturally, this file intersects with compaction, ui-flow. It contains 18 lines, 4 detected imports, and 1 detected exports.
Important relationships
- components/messages/AdvisorMessage.tsx
- components/messages/AssistantRedactedThinkingMessage.tsx
- components/messages/AssistantTextMessage.tsx
- components/messages/AssistantThinkingMessage.tsx
- components/messages/AssistantToolUseMessage.tsx
- components/messages/AttachmentMessage.tsx
- components/messages/CollapsedReadSearchContent.tsx
- components/messages/GroupedToolUseContent.tsx
Detected exports
CompactBoundaryMessage
Keywords
historyshortcutreacttextuseshortcutdisplaycompiler-runtimekeybindingscompactboundarymessagetoggletranscriptglobalctrl
Detected imports
react/compiler-runtimereact../../ink.js../../keybindings/useShortcutDisplay.js
Source notes
This page embeds the full file contents. Small or leaf files are still indexed honestly instead of being over-explained.
Full source
import { c as _c } from "react/compiler-runtime";
import * as React from 'react';
import { Box, Text } from '../../ink.js';
import { useShortcutDisplay } from '../../keybindings/useShortcutDisplay.js';
export function CompactBoundaryMessage() {
const $ = _c(2);
const historyShortcut = useShortcutDisplay("app:toggleTranscript", "Global", "ctrl+o");
let t0;
if ($[0] !== historyShortcut) {
t0 = <Box marginY={1}><Text dimColor={true}>✻ Conversation compacted ({historyShortcut} for history)</Text></Box>;
$[0] = historyShortcut;
$[1] = t0;
} else {
t0 = $[1];
}
return t0;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJSZWFjdCIsIkJveCIsIlRleHQiLCJ1c2VTaG9ydGN1dERpc3BsYXkiLCJDb21wYWN0Qm91bmRhcnlNZXNzYWdlIiwiJCIsIl9jIiwia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