Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

'accept command' button doesnt work

Open DrewDogComputers opened this issue 1 year ago • 22 comments

Before opening, please confirm:

Operating System

win64

Kiro Version

0.1.25

Bug Description

tried most of the basics to bust it lose short of a reinstall, seems to be an issue with a few other things in the kiro task chat as well

Steps to Reproduce

'accept command' button doesnt work

Expected Behavior

click 'accept command' and the command runs so the AI can make changes and see the output it is asking for.

Conversation ID

38e88d1e-76e6-4a8b-9d39-2f3e230d6613

Additional Context

No response

DrewDogComputers avatar Jul 26 '25 14:07 DrewDogComputers

Not just accept command, reject also fails.

prabhjotsbhatia-ca avatar Jul 27 '25 05:07 prabhjotsbhatia-ca

I encountered the same error, could you let me know if there is a solution? Thank you.

chuhuan88 avatar Jul 30 '25 10:07 chuhuan88

This appears to be similar to https://github.com/kirodotdev/Kiro/issues/13. Do you observe a waiting on input status? Could you try reloading the window from the command palate?

ykethan avatar Jul 31 '25 23:07 ykethan

@ykethan unfortunately the button did not work after reloading the window, The problem is exactly what is described in #13, it's happening for me with the current latest version: 0.1.25

AMasrar avatar Aug 01 '25 03:08 AMasrar

I found a solution. When you close the current project folder in kiro, rename the project folder, and then open the project in kiro, you will find that the 'accept command' button function returns to normal.

chuhuan88 avatar Aug 06 '25 04:08 chuhuan88

I found a solution. When you close the current project folder in kiro, rename the project folder, and then open the project in kiro, you will find that the 'accept command' button function returns to normal.

Thanks so much for sharing this workaround — it worked perfectly! I’m curious — how did you come up with this solution?

RajeshKumarS avatar Aug 06 '25 09:08 RajeshKumarS

Same here.

Clicking the accept button but nothing happens. Image

pahud avatar Aug 08 '25 14:08 pahud

Hey folks, on diving into this with @pahud on DM the issue appeared to due to a conflicting extension(RooCode extension) installed which was interjecting the terminal run. the log message:

Shell execution ended, but not from a Roo-registered terminal

If you do not have this extension installed or other AI based extension that work with terminal, could you provide us the logs from the developer tools in the IDE? You can find the developer tools by selecting Help from the top navbar, then select Toggle Developer Tools and Console tab. You may need to re-click the Accept button for any error messages to appear.

Image Image

Workaround: Disable the extension, the cmd/ctrl + shift + P and enter Developer:reload window

ykethan avatar Aug 15 '25 18:08 ykethan

I don't have RooCode installed. And there are no logs in the console when I click the Accept button. I can do "Trust and Accept" but the spec execution stops after that. I forced to restart the task and waste credits.

apotapov avatar Aug 17 '25 01:08 apotapov

I take it back. There is a stack trace when the command is shown:

workbench.desktop.main.js:617 [Extension Host] rejected promise not handled within 1 second: AgentAbortedException: Operation was aborted by user or system
Ozi @ workbench.desktop.main.js:617
$logExtensionHostMessage @ workbench.desktop.main.js:617
S @ workbench.desktop.main.js:10973
Q @ workbench.desktop.main.js:10973
M @ workbench.desktop.main.js:10973
L @ workbench.desktop.main.js:10973
(anonymous) @ workbench.desktop.main.js:10973
B @ workbench.desktop.main.js:30
fire @ workbench.desktop.main.js:30
fire @ workbench.desktop.main.js:634
l.onmessage @ workbench.desktop.main.js:10984
workbench.desktop.main.js:617 [Extension Host] stack trace: AgentAbortedException: Operation was aborted by user or system
	at AgentExecution3.completeWithAbort (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749891:24)
	at AgentExecution3.<anonymous> (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:97834:32)
	at AgentExecution3.abort (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749964:10)
	at /Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:758187:25
	at async AgentController2.publishAgentEvent (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:750484:7)
	at async AgentExecution3.yield (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749919:5)
	at async _ActionRunCommand.handle (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:742967:7)
	at async ToolExecuteBash.handle (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:743100:17)
	at async ToolExecuteBash.handleInput (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:693700:27)
	at async ToolExecuteBash.call (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:686858:18)
	at async attemptProcessingChunkStream (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:745116:20)
	at async RunnableCallable.func (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749062:22)
	at async RunnableCallable.invoke (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:737032:21)
	at async _RunnableSequence.invoke (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:675991:29)
	at async _runWithRetry (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:739680:17)
	at async PregelRunner._executeTasksWithRetry (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:739976:27)
	at async PregelRunner.tick (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:739779:66)
	at async CompiledStateGraph._runLoop (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:741242:9)
	at async createAndRunLoop (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:741148:9)
Ozi @ workbench.desktop.main.js:617
$logExtensionHostMessage @ workbench.desktop.main.js:617
S @ workbench.desktop.main.js:10973
Q @ workbench.desktop.main.js:10973
M @ workbench.desktop.main.js:10973
L @ workbench.desktop.main.js:10973
(anonymous) @ workbench.desktop.main.js:10973
B @ workbench.desktop.main.js:30
fire @ workbench.desktop.main.js:30
fire @ workbench.desktop.main.js:634
l.onmessage @ workbench.desktop.main.js:10984
workbench.desktop.main.js:631 [kiro.kiroAgent]Operation was aborted by user or system
$onExtensionRuntimeError @ workbench.desktop.main.js:631
S @ workbench.desktop.main.js:10973
Q @ workbench.desktop.main.js:10973
M @ workbench.desktop.main.js:10973
L @ workbench.desktop.main.js:10973
(anonymous) @ workbench.desktop.main.js:10973
B @ workbench.desktop.main.js:30
fire @ workbench.desktop.main.js:30
fire @ workbench.desktop.main.js:634
l.onmessage @ workbench.desktop.main.js:10984
workbench.desktop.main.js:631 AgentAbortedException: Operation was aborted by user or system
	at AgentExecution3.completeWithAbort (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749891:24)
	at AgentExecution3.<anonymous> (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:97834:32)
	at AgentExecution3.abort (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749964:10)
	at /Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:758187:25
	at async AgentController2.publishAgentEvent (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:750484:7)
	at async AgentExecution3.yield (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749919:5)
	at async _ActionRunCommand.handle (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:742967:7)
	at async ToolExecuteBash.handle (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:743100:17)
	at async ToolExecuteBash.handleInput (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:693700:27)
	at async ToolExecuteBash.call (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:686858:18)
	at async attemptProcessingChunkStream (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:745116:20)
	at async RunnableCallable.func (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:749062:22)
	at async RunnableCallable.invoke (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:737032:21)
	at async _RunnableSequence.invoke (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:675991:29)
	at async _runWithRetry (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:739680:17)
	at async PregelRunner._executeTasksWithRetry (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:739976:27)
	at async PregelRunner.tick (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:739779:66)
	at async CompiledStateGraph._runLoop (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:741242:9)
	at async createAndRunLoop (/Applications/Kiro.app/Contents/Resources/app/extensions/kiro.kiro-agent/dist/extension.js:741148:9)

apotapov avatar Aug 17 '25 03:08 apotapov

Appreciate the information, on diving into this I was able to reproduce the issue using the following reproduction steps:

  1. Open tab 1: ask kiro to run a command for example docker -v this should prompt to run or trust the commands. Do not select any options.
  2. Open tab 2: similar to tab 1 ask kiro to run a command for example docker -v this should prompt to run or trust the commands.
  3. Click on Accept button and observe the behavior. Additionally, closing tab 1 did not fix the issue. As a workaround had to prompt to kiro or open a new session.

Do let us know if the reproduction is not similar, additional information such as reproduction steps would help us dive into this issue.

ykethan avatar Sep 03 '25 20:09 ykethan

I found a solution. When you close the current project folder in kiro, rename the project folder, and then open the project in kiro, you will find that the 'accept command' button function returns to normal.

Awesome! Tested and it works!

ShareZore avatar Sep 15 '25 02:09 ShareZore

same issue workbench.desktop.main.js:1292 AgentAbortedException: Operation was aborted by user or system at AgentExecution2.completeWithAbort (c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:747671:24) at AgentExecution2. (c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:98282:32) at AgentExecution2.abort (c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:747744:10) at c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:756070:25 at async AgentController2.publishAgentEvent (c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:748266:7) at async AgentExecution2.yield (c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:747699:5) at async _ToolExecuteBash.executeBash (c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:759786:7) at async _ToolExecuteBash.handle (c:\Users\ xxx\AppData\Local\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js:759721:17) at async _ToolExecuteBash.handleInput

NeuZhou avatar Sep 17 '25 09:09 NeuZhou

+1

francoisneron avatar Sep 18 '25 02:09 francoisneron

+1

inluxc avatar Sep 29 '25 20:09 inluxc

+1

sulistta avatar Oct 06 '25 03:10 sulistta

I have the same issue, the work around doesn't work for me though, and occurs across multiple repos

hb2uk avatar Oct 13 '25 03:10 hb2uk

I found a solution. When you close the current project folder in kiro, rename the project folder, and then open the project in kiro, you will find that the 'accept command' button function returns to normal.

this worked for me this morning.

mundijr avatar Oct 18 '25 11:10 mundijr

bug is still there as of today, the workaround also still works

anthonysgro avatar Nov 16 '25 02:11 anthonysgro

I found a solution. When you close the current project folder in kiro, rename the project folder, and then open the project in kiro, you will find that the 'accept command' button function returns to normal.

Woked for me as well ! i changed the project folder name then right click on the new named project and the "open with kiro" and accept button work again ! thank you !

yuval-kahan avatar Nov 16 '25 19:11 yuval-kahan