Skip to content

TextEditor tool crash #78

@bhouston

Description

@bhouston

Just ran into this:

🤖 Let's update the whole file at once:
📝 create operation on "/Users/benhouston/Coding/Business/mycoder/packages/cli/tests/settings/config.test.ts", Updating the entire config test file
📝 Text editor operation failed: File already exists: /Users/benhouston/Coding/Business/mycoder/packages/cli/tests/settings/config.test.ts. Use str_replace to modify it.

🤖 An error occurred: InvalidToolArgumentsError: Invalid arguments for tool subAgent: Type validation failed: Value: {"description":"Update config test file to match new default config values","goal":"Update the /Users/benhouston/Coding/Business/mycoder/packages/cli/tests/settings/config.test.ts file to match the new default configuration values (headless, userSession, pageFilter)","projectContext":"We've added new default configuration values (headless, userSession, pageFilter) to the CLI tool's config.ts file, and now we need to update the tests to match these new defaults. The tests currently expect the default config to only contain githubMode: false, but now it should also include headless: true, userSession: false, and pageFilter: 'none'.","fileContext":"<parameter name="workingDirectory">/Users/benhouston/Coding/Business/mycoder/packages/cli","relevantFiles":"tests/settings/config.test.ts"}.
🤖 Error message: [
🤖 {
🤖 "code": "invalid_type",
🤖 "expected": "object",
🤖 "received": "string",
🤖 "path": [
🤖 "fileContext"
🤖 ],
🤖 "message": "Expected object, received string"
🤖 }
🤖 ] AI_InvalidToolArgumentsError: Invalid arguments for tool subAgent: Type validation failed: Value: {"description":"Update config test file to match new default config values","goal":"Update the /Users/benhouston/Coding/Business/mycoder/packages/cli/tests/settings/config.test.ts file to match the new default configuration values (headless, userSession, pageFilter)","projectContext":"We've added new default configuration values (headless, userSession, pageFilter) to the CLI tool's config.ts file, and now we need to update the tests to match these new defaults. The tests currently expect the default config to only contain githubMode: false, but now it should also include headless: true, userSession: false, and pageFilter: 'none'.","fileContext":"<parameter name="workingDirectory">/Users/benhouston/Coding/Business/mycoder/packages/cli","relevantFiles":"tests/settings/config.test.ts"}.
🤖 Error message: [
🤖 {
🤖 "code": "invalid_type",
🤖 "expected": "object",
🤖 "received": "string",
🤖 "path": [
🤖 "fileContext"
🤖 ],
🤖 "message": "Expected object, received string"
🤖 }
🤖 ]
🤖 at doParseToolCall (file:///Users/benhouston/Coding/Business/mycoder/node_modules/.pnpm/ai@4.1.51_react@19.0.0_zod@3.24.2/node_modules/ai/core/generate-text/parse-tool-call.ts:101:11)
🤖 at parseToolCall (file:///Users/benhouston/Coding/Business/mycoder/node_modules/.pnpm/ai@4.1.51_react@19.0.0_zod@3.24.2/node_modules/ai/core/generate-text/parse-tool-call.ts:31:18)
🤖 at file:///Users/benhouston/Coding/Business/mycoder/node_modules/.pnpm/ai@4.1.51_react@19.0.0_zod@3.24.2/node_modules/ai/core/generate-text/generate-text.ts:406:13
🤖 at Array.map ()
🤖 at fn (file:///Users/benhouston/Coding/Business/mycoder/node_modules/.pnpm/ai@4.1.51_react@19.0.0_zod@3.24.2/node_modules/ai/core/generate-text/generate-text.ts:405:50)
🤖 at processTicksAndRejections (node:internal/process/task_queues:105:5)
🤖 at file:///Users/benhouston/Coding/Business/mycoder/node_modules/.pnpm/ai@4.1.51_react@19.0.0_zod@3.24.2/node_modules/ai/core/telemetry/record-span.ts:18:22
🤖 at toolAgent (file:///Users/benhouston/Coding/Business/mycoder/packages/agent/src/core/toolAgent/index.ts:77:33)
🤖 at Object.handler (file:///Users/benhouston/Coding/Business/mycoder/packages/cli/src/commands/$default.ts:139:22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions