Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Unable to migrate a chat after upgrading my Kiro IDE

Open marytan14 opened this issue 3 months ago • 4 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

1.0.337

Bug Description

Hello,

I upgraded my Kiro IDE application and tried migrated five chats from my session history. Four chats migrated successfully. One did not.

Session ID: 1ef23331-8a09-43d1-be29-55aaaa291fcd

Error: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing)

Here are my environment details: Version: 1.0.337 (user setup) VSCode Version: 1.109.5 Commit: 4612d643b5a995f3986d1405d596243854080f7f Date: 2026-08-18T06:06:24.137Z Electron: 39.6.0 Chromium: 142.0.7444.265 Node.js: 22.22.0 V8: 14.2.231.22-electron.0 OS: Windows_NT x64 10.0.26200

Steps to Reproduce

In the session list, I click the Migrate button and I get an error for this chat session.

I'm able to open the chat data's .json file and can read it.

I'm attaching the .json file containing the chat contents.

1ef23331-8a09-43d1-be29-55aaaa291fcd.json

Expected Behavior

I should have been able to migrate this chat without an error.

Conversation ID

No response

Additional Context

Contents of the error during migration:

2026-08-27 14:12:52.660 [info] Detection: found 5 v1 session file(s) for the current workspace 2026-08-27 14:12:57.355 [info] Detection complete: 4 session(s) in workspace (4 unmigrated, 0 re-migratable, 0 migrated) 2026-08-27 14:12:57.355 [info] To enable verbose logging for troubleshooting, set the log level to "Trace" in the "Kiro - Session Migration" output channel dropdown. 2026-08-27 14:12:57.355 [info] Detection summary: 4 session(s) in workspace — 4 unmigrated, 0 re-migratable, 0 already migrated 2026-08-27 14:12:57.355 [info] [Unmigrated] "If I give you an HTML file, would you be able t..." (0b76d78a-857d-4c85-95df-4d19be0a2bfa) — 66 messages, last modified 2026-05-14T12:14:00.748Z 2026-08-27 14:12:57.356 [info] [Unmigrated] "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) — 90 messages, last modified 2026-05-14T19:33:55.372Z 2026-08-27 14:12:57.356 [info] [Unmigrated] "If I give you an HTML file, would you be able t..." (242c1deb-9475-420a-8301-ce37354a2044) — 208 messages, last modified 2026-08-25T20:42:33.513Z 2026-08-27 14:12:57.356 [info] [Unmigrated] "Hi, Kiro." (9d068715-ffac-43c3-8a3a-0e25f5ecdbf3) — 10 messages, last modified 2026-08-27T17:58:51.776Z 2026-08-27 14:30:02.817 [info] Detection: found 5 v1 session file(s) for the current workspace 2026-08-27 14:30:02.910 [info] Detection complete: 4 session(s) in workspace (4 unmigrated, 0 re-migratable, 0 migrated) 2026-08-27 14:30:02.911 [info] To enable verbose logging for troubleshooting, set the log level to "Trace" in the "Kiro - Session Migration" output channel dropdown. 2026-08-27 14:30:02.911 [info] Detection summary: 4 session(s) in workspace — 4 unmigrated, 0 re-migratable, 0 already migrated 2026-08-27 14:30:02.911 [info] [Unmigrated] "If I give you an HTML file, would you be able t..." (0b76d78a-857d-4c85-95df-4d19be0a2bfa) — 66 messages, last modified 2026-05-14T12:14:00.748Z 2026-08-27 14:30:02.911 [info] [Unmigrated] "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) — 90 messages, last modified 2026-05-14T19:33:55.372Z 2026-08-27 14:30:02.911 [info] [Unmigrated] "If I give you an HTML file, would you be able t..." (242c1deb-9475-420a-8301-ce37354a2044) — 208 messages, last modified 2026-08-25T20:42:33.513Z 2026-08-27 14:30:02.911 [info] [Unmigrated] "Hi, Kiro." (9d068715-ffac-43c3-8a3a-0e25f5ecdbf3) — 10 messages, last modified 2026-08-27T17:58:51.776Z 2026-08-27 14:30:15.202 [info] Starting migration of 4 selected session(s): 2026-08-27 14:30:15.202 [info] → "If I give you an HTML file, would you be able t..." (0b76d78a-857d-4c85-95df-4d19be0a2bfa) 2026-08-27 14:30:15.202 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:30:15.202 [info] → "If I give you an HTML file, would you be able t..." (242c1deb-9475-420a-8301-ce37354a2044) 2026-08-27 14:30:15.202 [info] → "Hi, Kiro." (9d068715-ffac-43c3-8a3a-0e25f5ecdbf3) 2026-08-27 14:30:15.202 [info] Coordinator: starting batch of 4 session(s), concurrency=3 2026-08-27 14:30:22.996 [info] Coordinator: batch complete — 3 succeeded, 1 failed 2026-08-27 14:30:22.996 [info] ✓ 0b76d78a-857d-4c85-95df-4d19be0a2bfa — migrated successfully 2026-08-27 14:30:22.996 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:30:22.996 [info] ✓ 242c1deb-9475-420a-8301-ce37354a2044 — migrated successfully 2026-08-27 14:30:22.996 [info] ✓ 9d068715-ffac-43c3-8a3a-0e25f5ecdbf3 — migrated successfully 2026-08-27 14:30:22.996 [info] Migration complete: 3 succeeded, 1 failed 2026-08-27 14:30:22.997 [info] 2026-08-27 14:30:22.997 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:30:22.997 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:30:22.997 [info] 2026-08-27 14:30:22.997 [info] The migration process never modifies or deletes original files. 2026-08-27 14:30:22.997 [info] You can retry migration at any time, or share these logs with support. 2026-08-27 14:30:27.946 [info] Starting migration of 1 selected session(s): 2026-08-27 14:30:27.946 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:30:27.946 [info] Coordinator: starting batch of 1 session(s), concurrency=3 2026-08-27 14:30:27.973 [info] Coordinator: batch complete — 0 succeeded, 1 failed 2026-08-27 14:30:27.973 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:30:27.973 [info] Migration complete: 0 succeeded, 1 failed 2026-08-27 14:30:27.973 [info] 2026-08-27 14:30:27.973 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:30:27.973 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:30:27.973 [info] 2026-08-27 14:30:27.973 [info] The migration process never modifies or deletes original files. 2026-08-27 14:30:27.973 [info] You can retry migration at any time, or share these logs with support. 2026-08-27 14:30:30.044 [info] Starting migration of 1 selected session(s): 2026-08-27 14:30:30.045 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:30:30.045 [info] Coordinator: starting batch of 1 session(s), concurrency=3 2026-08-27 14:30:30.063 [info] Coordinator: batch complete — 0 succeeded, 1 failed 2026-08-27 14:30:30.064 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:30:30.064 [info] Migration complete: 0 succeeded, 1 failed 2026-08-27 14:30:30.064 [info] 2026-08-27 14:30:30.064 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:30:30.064 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:30:30.064 [info] 2026-08-27 14:30:30.064 [info] The migration process never modifies or deletes original files. 2026-08-27 14:30:30.064 [info] You can retry migration at any time, or share these logs with support. 2026-08-27 14:30:31.872 [info] Starting migration of 1 selected session(s): 2026-08-27 14:30:31.872 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:30:31.872 [info] Coordinator: starting batch of 1 session(s), concurrency=3 2026-08-27 14:30:31.890 [info] Coordinator: batch complete — 0 succeeded, 1 failed 2026-08-27 14:30:31.890 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:30:31.890 [info] Migration complete: 0 succeeded, 1 failed 2026-08-27 14:30:31.890 [info] 2026-08-27 14:30:31.890 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:30:31.890 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:30:31.890 [info] 2026-08-27 14:30:31.890 [info] The migration process never modifies or deletes original files. 2026-08-27 14:30:31.890 [info] You can retry migration at any time, or share these logs with support. 2026-08-27 14:30:33.611 [info] Starting migration of 1 selected session(s): 2026-08-27 14:30:33.611 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:30:33.611 [info] Coordinator: starting batch of 1 session(s), concurrency=3 2026-08-27 14:30:33.630 [info] Coordinator: batch complete — 0 succeeded, 1 failed 2026-08-27 14:30:33.630 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:30:33.630 [info] Migration complete: 0 succeeded, 1 failed 2026-08-27 14:30:33.630 [info] 2026-08-27 14:30:33.630 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:30:33.630 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:30:33.630 [info] 2026-08-27 14:30:33.630 [info] The migration process never modifies or deletes original files. 2026-08-27 14:30:33.630 [info] You can retry migration at any time, or share these logs with support. 2026-08-27 14:30:33.835 [info] Starting migration of 1 selected session(s): 2026-08-27 14:30:33.835 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:30:33.835 [info] Coordinator: starting batch of 1 session(s), concurrency=3 2026-08-27 14:30:33.853 [info] Coordinator: batch complete — 0 succeeded, 1 failed 2026-08-27 14:30:33.853 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:30:33.853 [info] Migration complete: 0 succeeded, 1 failed 2026-08-27 14:30:33.853 [info] 2026-08-27 14:30:33.853 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:30:33.853 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:30:33.853 [info] 2026-08-27 14:30:33.853 [info] The migration process never modifies or deletes original files. 2026-08-27 14:30:33.853 [info] You can retry migration at any time, or share these logs with support. 2026-08-27 14:30:59.070 [info] Detection: found 5 v1 session file(s) for the current workspace 2026-08-27 14:30:59.146 [info] Detection complete: 4 session(s) in workspace (1 unmigrated, 0 re-migratable, 3 migrated) 2026-08-27 14:30:59.146 [info] To enable verbose logging for troubleshooting, set the log level to "Trace" in the "Kiro - Session Migration" output channel dropdown. 2026-08-27 14:30:59.146 [info] Detection summary: 4 session(s) in workspace — 1 unmigrated, 0 re-migratable, 3 already migrated 2026-08-27 14:30:59.146 [info] [Unmigrated] "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) — 90 messages, last modified 2026-05-14T19:33:55.372Z 2026-08-27 14:33:43.700 [info] Detection: found 5 v1 session file(s) for the current workspace 2026-08-27 14:33:43.792 [info] Detection complete: 4 session(s) in workspace (1 unmigrated, 0 re-migratable, 3 migrated) 2026-08-27 14:33:43.793 [info] To enable verbose logging for troubleshooting, set the log level to "Trace" in the "Kiro - Session Migration" output channel dropdown. 2026-08-27 14:33:43.793 [info] Detection summary: 4 session(s) in workspace — 1 unmigrated, 0 re-migratable, 3 already migrated 2026-08-27 14:33:43.793 [info] [Unmigrated] "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) — 90 messages, last modified 2026-05-14T19:33:55.372Z 2026-08-27 14:33:46.155 [info] Starting migration of 1 selected session(s): 2026-08-27 14:33:46.155 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:33:46.155 [info] Coordinator: starting batch of 1 session(s), concurrency=3 2026-08-27 14:33:46.180 [info] Coordinator: batch complete — 0 succeeded, 1 failed 2026-08-27 14:33:46.180 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:33:46.180 [info] Migration complete: 0 succeeded, 1 failed 2026-08-27 14:33:46.180 [info] 2026-08-27 14:33:46.180 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:33:46.180 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:33:46.180 [info] 2026-08-27 14:33:46.180 [info] The migration process never modifies or deletes original files. 2026-08-27 14:33:46.180 [info] You can retry migration at any time, or share these logs with support. 2026-08-27 14:34:22.380 [info] Detection: found 5 v1 session file(s) for the current workspace 2026-08-27 14:34:22.472 [info] Detection complete: 4 session(s) in workspace (1 unmigrated, 0 re-migratable, 3 migrated) 2026-08-27 14:34:22.472 [info] To enable verbose logging for troubleshooting, set the log level to "Trace" in the "Kiro - Session Migration" output channel dropdown. 2026-08-27 14:34:22.472 [info] Detection summary: 4 session(s) in workspace — 1 unmigrated, 0 re-migratable, 3 already migrated 2026-08-27 14:34:22.472 [info] [Unmigrated] "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) — 90 messages, last modified 2026-05-14T19:33:55.372Z 2026-08-27 14:34:23.907 [info] Starting migration of 1 selected session(s): 2026-08-27 14:34:23.907 [info] → "Based on our last chat, can you convert this HT..." (1ef23331-8a09-43d1-be29-55aaaa291fcd) 2026-08-27 14:34:23.907 [info] Coordinator: starting batch of 1 session(s), concurrency=3 2026-08-27 14:34:23.930 [info] Coordinator: batch complete — 0 succeeded, 1 failed 2026-08-27 14:34:23.930 [warning] ✗ 1ef23331-8a09-43d1-be29-55aaaa291fcd — failed: invokeSubAgent action tooluse_BOIGef6xgtK6VNYANECAYG is not cardable (state=HandledError, subExecutionId=missing) 2026-08-27 14:34:23.930 [info] Migration complete: 0 succeeded, 1 failed 2026-08-27 14:34:23.930 [info] 2026-08-27 14:34:23.930 [info] ⚠ No data was lost. Your original session files are untouched at: 2026-08-27 14:34:23.930 [info] • c:\Users\emaryta\AppData\Roaming\Kiro\User\globalStorage\kiro.kiroagent\workspace-sessions\YzpcVXNlcnNcZW1hcnl0YVxLaXJv\1ef23331-8a09-43d1-be29-55aaaa291fcd.json 2026-08-27 14:34:23.930 [info] 2026-08-27 14:34:23.930 [info] The migration process never modifies or deletes original files. 2026-08-27 14:34:23.931 [info] You can retry migration at any time, or share these logs with support.

marytan14 avatar Aug 27 '26 18:08 marytan14

Thanks for reporting this issue and for providing such detailed information, including the session JSON file and error logs — that's really helpful! It sounds like one of your chat sessions is hitting an error during migration after upgrading Kiro, while the others migrate just fine. A maintainer will take a look at this shortly. We appreciate you taking the time to document this so thoroughly! 🙌

github-actions[bot] avatar Aug 27 '26 18:08 github-actions[bot]

Thanks for raising this. The error invokeSubAgent action ... is not cardable during session migration suggests a v0→v1 format incompatibility for subagent tool use entries that the migration handler doesn't cover. Marking this as a bug to investigate further.

AnilMaktala avatar Sep 22 '26 18:09 AnilMaktala

I can confirm this issue on macOS as well, and I have now reproduced it in multiple legacy workspaces.

In one workspace, 1 of 2 sessions failed to migrate:

- Session: `13c2a71c-2a0c-4ded-a19a-e2d5be911921`
- 152 messages
- Error: `invokeSubAgent action invoke_subagent_tooluse_iMnw40csXYNjXmKBNJm78D_1777026087987_6a9b641e is not cardable (state=Running, subExecutionId=present)`

In another workspace, Kiro detected 5 legacy sessions. 4 migrated successfully and 1 failed:

- Session: `5001614a-9d7e-4b6e-9eb5-8ff022711404`
- 38 messages
- Last modified: `2026-03-20T07:36:04.311Z`
- Error: `invokeSubAgent action invoke_subagent_tooluse_WzExUmGCFl5BweRERkqdMx_1773989607658_f29c5b47 is not cardable (state=Running, subExecutionId=present)`

Retrying the failed sessions individually multiple times does not help; the migration fails consistently with the same error.

One additional pattern I noticed while migrating several old workspaces: this does not happen for every workspace, but in the affected workspaces the failing session appears to be the oldest/first session in that workspace. Another workspace migrated all legacy sessions successfully.

This may just be correlation, but it could be useful when investigating whether older session records contain a legacy invokeSubAgent representation/state that newer 0.x sessions do not.

The original legacy session files remain intact, so the data itself does not appear to be lost.

tobi2736 avatar Sep 23 '26 12:09 tobi2736

Thanks, everyone, for confirming that my issue migrating one of my chat sessions can be reproduced. My situation supports @tobi2736's finding that this failed chat session happens with the oldest or first one in the set. It appears that my chat details are intact in my .json, which is great.

marytan14 avatar Sep 23 '26 14:09 marytan14