revert: "read-to-open"

This reverts commit c48d2e6080.
This commit is contained in:
can1357
2026-04-24 22:36:44 +02:00
parent 99a21b95ba
commit d82377cda8
44 changed files with 442 additions and 300 deletions
@@ -18,7 +18,7 @@ export interface PruneConfig {
export const DEFAULT_PRUNE_CONFIG: PruneConfig = {
protectTokens: 40_000,
minimumSavings: 20_000,
protectedTools: ["skill", "open", "read"],
protectedTools: ["skill", "read"],
};
export interface PruneResult {
@@ -44,8 +44,7 @@ export function extractFileOpsFromMessage(message: AgentMessage, fileOps: FileOp
if (!path) continue;
switch (block.name) {
case "read": // legacy alias
case "open":
case "read":
fileOps.read.add(path);
break;
case "write":