AI AI Tools Guidebook
Home AI Tool Tutorials AI Use Cases Prompt Library About
🌐 中文
Home / #agent

#agent

Articles tagged with #agent

Troubleshooting

Claude Code Output Truncated by Context Window

A long Claude Code reply cuts off mid-sentence. Fastest fix: tell it to continue from the last line. Real cause is usually auto-compact, the per-reply output cap, or one huge tool result eating the budget.

May 24, 2026 #Claude Code #Troubleshooting
Troubleshooting

Claude Code Subagent Result Not Relayed to Main Session

A Task subagent finished cleanly but the main Claude Code session shows nothing, a generic summary, or claims it's still running. Fix the final-message, output-size, or routing problem in minutes.

May 24, 2026 #Claude Code #subagent
Troubleshooting

Claude Computer Use Stuck Clicking the Same Button in a Loop

Claude Computer Use keeps clicking the same button or field without progressing — almost always a screenshot-timing, coordinate-scaling, or hidden-state problem. Here is the fastest fix plus the full diagnosis.

May 24, 2026 #Troubleshooting #Claude
Troubleshooting

Codex Stalls on a Merge Conflict or Resolves It the Wrong Way

Codex hits conflict markers and stalls, picks the wrong side, or commits the markers into the file. Rebase in setup, an AGENTS.md stop-on-conflict rule, and a pre-commit hook fix it.

May 24, 2026 #Codex #agent
Troubleshooting

Codex Added a Package but the Lockfile Did Not Change

Codex edited package.json but never ran npm install, so package-lock.json diverges and npm ci fails. Fix it with setup.sh, a CI sync check, and AGENTS.md rules.

May 24, 2026 #Codex #agent
Troubleshooting

Codex Creates a Duplicate TypeScript Interface for One That Already Exists

Codex defines a fresh User or ApiResponse type when an identical one already lives in your repo. Make the agent search first using AGENTS.md, a types barrel, ripgrep, and a ts-morph CI check.

May 24, 2026 #Codex #agent
Troubleshooting

Codex Rewrote Git History You Did Not Want Touched (amend / rebase / force-push)

Codex ran git commit --amend, an interactive rebase, or force-pushed and rewrote shared history. Lock the agent to forward-only commits with AGENTS.md, the sandbox network toggle, and a GitHub ruleset.

May 24, 2026 #Codex #agent
Troubleshooting

Codex PR Description Says "Refactored Components" and Nothing Else

Codex emits a one-line PR body with no detail. Force a structured description (before/after, why, test plan) with a PR template, AGENTS.md, and a CI gate; plus the Codex Cloud button caveat.

May 24, 2026 #Codex #agent
Troubleshooting

Codex Says Tests Passed but Actually Skipped the Failures

Codex reports green tests but the failing cases were filtered out, marked .skip, or bailed early. How to force honest test reporting before merge.

May 24, 2026 #Codex #agent
Troubleshooting

Codex Stops Mid-Refactor on a Large Diff: How to Finish the Job

Codex hits a context limit mid-task and leaves a half-applied patch. Scope tasks to one verb, split into multi-PR plans, tune auto-compaction, and resume cleanly with config that works as of June 2026.

May 24, 2026 #Codex #agent
Troubleshooting

Stop Codex Writing componentWillMount and Other Deprecated APIs

Codex injects API patterns deprecated years ago because its training data lags. Lock it to modern APIs with AGENTS.md rules, the @typescript-eslint/no-deprecated lint rule, and current reference docs.

May 24, 2026 #Codex #agent
Troubleshooting

Cursor Runs Shell Commands Without Asking (YOLO / Auto-Run)

Cursor Agent runs terminal commands with no confirmation even after you turned auto-run off. As of June 2026 it's almost always Run Mode, a wide allowlist, or a workspace permissions.json. Fix it in a minute.

May 24, 2026 #Cursor #Troubleshooting
Troubleshooting

Claude Code Keeps Asking Permission for the Same Command

Claude Code re-prompts for a Bash or Edit you already allowed. Usually the allow pattern is too narrow, lives in the wrong settings scope, or the command is compound — here is the exact fix.

May 23, 2026 #Claude Code #agent
Troubleshooting

Claude Code Token Budget Too Large for One Task

One task burns through the context window, auto-compacts mid-refactor, and loses your plan. Decompose into smaller steps, push reads into sub-agents, and save state to disk.

May 23, 2026 #Claude Code #agent
Troubleshooting

Claude Code Bash Tool Hangs: Fix Stuck Commands

A dev server or curl runs forever and Claude Code freezes on a spinner. Use run_in_background, set an explicit timeout, and kill stuck shells with /tasks. Verified June 2026.

May 23, 2026 #Claude Code #agent
Troubleshooting

Codex Agent Output Conflicts With Prettier

Codex writes a file, Prettier reformats it on save, and the diff explodes. Fix it by running the project's pinned Prettier inside the agent loop and aligning AGENTS.md style hints to .prettierrc.

May 23, 2026 #Codex #agent
Troubleshooting

Codex Agent Goes Out-of-Context on Long Repos

On 500k+ line repos Codex loses the thread halfway. Fix it by scoping the working set, pre-feeding directory summaries, and putting conventions in AGENTS.md so they survive compaction.

May 23, 2026 #Codex #agent
Troubleshooting

Codex Agent Silently Skips Files Containing Binary Data

Codex quietly drops PNGs, PDFs, sqlite DBs, and compiled artifacts from audits. Fix it by probing binaries (file + wc -c + sha256sum), allowlisting text extensions, and forcing a no-omit output schema.

May 23, 2026 #Codex #agent
Troubleshooting

Codex Agent Makes Too Many Redundant Tool Calls (Fix)

Codex re-reads the same file 8 times and re-greps the same query 5 times. Fastest fix: run /plan first, add an AGENTS.md repo map, and keep reasoning effort at medium. Full diagnosis below.

May 23, 2026 #Codex #agent
Troubleshooting

Codex Stops Mid-Task With No Error: Causes and Fixes

Codex halts halfway through a multi-step task with no error — usually context compaction, a sandbox/approval denial, or a premature stop signal. Diagnose by the last tool call, then resume with codex resume --last.

May 23, 2026 #Codex #agent
AI AI Tools Guidebook

A bilingual content site focused on AI tools and digital productivity.

Navigation

  • AI Tool Tutorials
  • AI Use Cases
  • Prompt Library
  • Indie Dev & Website Building
  • Troubleshooting
  • Official Resources & Docs

Legal

  • About
  • Contact
  • Privacy
  • Terms
  • Disclaimer
  • Editorial Policy
  • Affiliate Disclosure
  • RSS Feed
© 2026 AI Tools Guidebook. All rights reserved.