This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
* Plan: docs/superpowers/plans/2026-05-13-ssh-console.md (Phase 3).
|
||||
*/
|
||||
import type { ToolDef } from '../../llm/openai-compat.js';
|
||||
import type { ToolContext, ToolResult } from './core.js';
|
||||
import type { ToolContext, ToolResult } from './tool-context.js';
|
||||
import { ConsoleSession } from '../../ssh/console-session.js';
|
||||
import { checkConsoleInput } from '../../ssh/console-deny-check.js';
|
||||
import { clearBuffer } from '../../ssh/crypto.js';
|
||||
@@ -528,10 +528,11 @@ export function resolveTargetSession(
|
||||
}
|
||||
|
||||
/**
|
||||
* Screen-auto-inject lookup consumed by buildGlobalPreamble (prompt.ts) via
|
||||
* __setActiveSessionLookup — shows the agent every one of its live console
|
||||
* screens at the top of each movement's system prompt (one block per open
|
||||
* connection). Returns ALL live sessions for the task, unfiltered; prompt.ts
|
||||
* Screen-auto-inject lookup consumed by buildDynamicContextBlock (prompt.ts)
|
||||
* via __setActiveSessionLookup — shows the agent every one of its live console
|
||||
* screens in the job's trailing「現在のコンテキスト」user block (one block per
|
||||
* open connection; moved out of the system prompt for KV-cache stability,
|
||||
* PR #935). Returns ALL live sessions for the task, unfiltered; prompt.ts
|
||||
* is responsible for scoping the result down to the current movement's
|
||||
* `allowedSshConnections` (Task 5) — this function must not do that
|
||||
* filtering itself, since it has no visibility into which movement is
|
||||
|
||||
Reference in New Issue
Block a user