Skip to content

Commit ab4d5da

Browse files
piotrskiclaude
andcommitted
fix: remove maxLines from IPC response data
maxLines is a formatting concern, not data. The daemon now returns only { nodes, totalCount } in the get-tree response. The CLI passes maxLines directly to formatTree from the local command flags. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 047d198 commit ab4d5da

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/agent-react-devtools/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ async function main(): Promise<void> {
181181
const ipcCmd: IpcCommand = { type: 'get-tree', depth, noHost, maxLines, root };
182182
const resp = await sendCommand(ipcCmd);
183183
if (resp.ok) {
184-
const { nodes, totalCount, maxLines: ml } = resp.data as any;
185-
console.log(formatTree(nodes, { hint: resp.hint, totalCount, maxLines: ml }));
184+
const { nodes, totalCount } = resp.data as any;
185+
console.log(formatTree(nodes, { hint: resp.hint, totalCount, maxLines }));
186186
} else {
187187
console.error(resp.error);
188188
process.exit(1);

packages/agent-react-devtools/src/daemon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class Daemon {
168168
});
169169
const response: IpcResponse = {
170170
ok: true,
171-
data: { nodes: treeData, totalCount, maxLines: cmd.maxLines },
171+
data: { nodes: treeData, totalCount },
172172
};
173173
if (treeData.length === 0) {
174174
const health = this.bridge.getConnectionHealth();

0 commit comments

Comments
 (0)