If your VS Code AI agent keeps dropping tasks into the wrong kanban column, the cause is almost always the board's status-mapping rules, not a bug in VS Code itself. Tasks in VS Code kanban boards (usually provided by an extension such as one of the agent or issue-tracker boards, or a board synced from GitHub Issues) sit in a column based on a status field the agent writes back to the task file. When that field, the column name, or the mapping between them drifts out of sync, cards land in the wrong place. The fix is to align the column names, the agent's status values, and the board's mapping in that order, then move the affected cards back.

What You'll Need

  • The board extension installed and visible in the VS Code sidebar or as an editor tab
  • Write access to the folder or repository that stores the board data
  • A backup or version control history so you can recover if a bulk edit goes wrong
  • Knowledge of which extension you use (task board, issue tracker, or agent workflow extension)

Step-by-Step

  1. Open the board and identify one stuck card. Note the card's current column and which column it should be in. Do this for two or three cards so you can spot a pattern (for example, everything completed lands in "In Review" or everything sits in "Todo").
  2. Check whether the board is backed by files in your workspace or by a remote service. In most extensions, right-click a card and look for an option like "Open File", "Reveal in Explorer", "Open in GitHub", or a similar entry. If a file opens, the board is file-backed and you can inspect it directly. If a URL opens, the source of truth is the remote service and you will fix it there. Menu labels vary slightly by extension and version.
  3. In the file or issue, look at the status property. It is commonly named status, state, column, or stage, and it usually sits near the top of the file's front matter or in a YAML or JSON block. Write down the exact value, including capitalization and spaces.
  4. Compare that value with the column names on the board. A card whose status is done will not appear in a column named Done if the mapping is case-sensitive, and it will not appear in "Complete" at all. Note every mismatch.
  5. Open the extension's settings and find the section that defines columns or status mapping. Depending on the extension this may be labelled something like "Columns", "Board", "Statuses", or "Workflow". Many boards auto-generate columns from the distinct status values they find, which is why a typo or a new value creates an unexpected extra column.
  6. Decide on one canonical spelling for each status and use it everywhere: board configuration, task files, and the agent's instructions. Update the board setting first so the board accepts the value, then the task files. Do not change both at once or you will lose track of what moved.
  7. Fix the agent's instruction or prompt. Open the file that defines how the agent behaves (often a prompt, instruction, or workflow file in the workspace, or the extension's agent settings). Find where it tells the agent which status to set when it starts, pauses, or finishes a task. If it says something generic like "mark as complete", replace it with the exact status values the board uses, spelling them the same way.
  8. Move the stuck cards. Right-click a card and look for a "Move to" submenu, or drag the card to the correct column. If dragging does not stick, edit the status value in the file or issue directly and refresh the board with the extension's refresh command or by reopening the board view.
  9. Re-run one small agent task to verify. Give the agent a short, safe task (for example, "add a comment to this card" rather than a long multi-file change) and watch which column it writes to. This confirms the fix before you let it loose on the rest of the backlog.
  10. Commit the corrected board data and instruction files to version control. If the agent later regresses, you can diff against this commit to see exactly which status value or instruction changed.

Common Mistakes

Editing the card in the UI only. Drag-and-drop updates the board's view but not always the underlying status field. If the board re-reads files on refresh, the card jumps back. Always confirm the file or issue itself changed.

Fixing the card but not the agent's instructions. A corrected card stays corrected only until the agent touches it again. If the instruction still says the old status value, the next run reproduces the problem.

Assuming column order equals workflow order. Some boards sort columns alphabetically unless you define an explicit order. A card can look "wrong" when the column is simply displayed out of sequence.

Case and whitespace mismatches. In Progress, in progress, and in-progress are three different values to most board parsers. Pick one form and check for trailing spaces.

Renaming a column without migrating its cards. Renaming a column in board settings can orphan every card that still carries the old status, dumping them into an "Unknown" or uncategorized bucket. Migrate values first, rename second.

Tips

  • Keep the number of statuses small. A five-column board (Backlog, Todo, In Progress, Review, Done) is far easier to keep in sync than a ten-column one, and agents make fewer mistakes with a short list.
  • Write the allowed status values as an explicit list in the agent's instruction file rather than describing them in prose. Lists are copied more reliably than descriptions.
  • Add a "review" status between In Progress and Done so an agent that is unsure can park work instead of guessing at "Done".
  • Use a board filter to show only cards assigned to the agent, so its misplacements stand out against your own cards.
  • Before any bulk find-and-replace across task files, commit or stash your work so you can roll back cleanly.
  • If your board syncs to a remote service, remember that a local edit and a remote edit to the same card can conflict. Resolve the conflict in one place and refresh.

Troubleshooting

Cards disappear entirely after a status edit. The new value is not recognized by the board configuration. Add it to the column list or revert to a known value, then refresh.

The card moves, then reverts on reload. The board is reading from a source you did not edit. Check whether a remote service or a second file (for example an index or manifest) holds the status.

The board shows duplicate columns. Two status values differ only by case or punctuation. Unify them and the duplicate column usually collapses on the next refresh.

The agent ignores your instruction file. Confirm the file is in the location the extension reads, and that the agent session was restarted after you edited it. Some extensions only load instructions when a session begins.

Nothing changes no matter what you edit. Restart VS Code, then check the extension's output or log panel for parse errors in the board data. A single malformed file can cause the board to fall back to stale data. If the board stays broken, back up your task data, uninstall the extension, reinstall it from the official marketplace, and reopen the workspace.

Frequently Asked Questions

Is this a VS Code bug?

Rarely. In almost every case the status value written to the task does not match a column the board recognizes.

Can I just drag the card and be done?

Sometimes, if drag-and-drop writes the status back to the source. If it reverts after a refresh, the underlying value was not updated.

Why does the agent set the wrong status in the first place?

Usually because its instructions use a generic word like "complete" or "done" that does not match the board's exact column name.

Will fixing one card fix future tasks?

No. Fixing the card repairs the past; fixing the agent's instruction or prompt repairs the future. Do both.

Where is the board data stored?

It depends on the extension. File-backed boards keep it in your workspace; synced boards keep it in the issue tracker or service. Right-click a card to find out which.

Can I reset the board to start over?

Only if you accept losing the card organization. Export or commit the data first, since a reset deletes column assignments.