MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getTaskOutput

Function getTaskOutput

src/components/tasks/ShellDetailDialog.tsx:31–39  ·  view source on GitHub ↗

* Read the tail of the task output file. Only reads the last few KB, * not the entire file.

(shell: DeepImmutable<LocalShellTaskState>)

Source from the content-addressed store, hash-verified

29 * not the entire file.
30 */
31async function getTaskOutput(shell: DeepImmutable<LocalShellTaskState>): Promise<TaskOutputResult> {
32 const path = getTaskOutputPath(shell.id);
33 try {
34 const result = await tailFile(path, SHELL_DETAIL_TAIL_BYTES);
35 return { content: result.content, bytesTotal: result.bytesTotal };
36 } catch {
37 return { content: '', bytesTotal: 0 };
38 }
39}
40
41export function ShellDetailDialog({ shell, onDone, onKillShell, onBack }: Props): React.ReactNode {
42 const { columns } = useTerminalSize();

Callers 1

ShellDetailDialogFunction · 0.70

Calls 2

getTaskOutputPathFunction · 0.85
tailFileFunction · 0.85

Tested by

no test coverage detected