it seems like sometimes the `run` block finishes w...
# proj-sdk
w
it seems like sometimes the
run
block finishes without an explicit
finish
action? is that possible?
c
It is possible it also returns a
MessageAction
when agent didn't call the "finish tool" -- this is the same behavior as V0
w
maybe we should fix this for v1--if we only get a MessageAction, call that a FinishAction with a
message
param?
that way the agent behaves more predictably
right now the frontend ends up in two different states after the agent finishes its work
or maybe we get rid of FinishAction entirely and tell the agent to send a MessageAction when its done
either way
but it's weird that there are two ways to finish
c
@nutritious-balloon-65098 we should create an issue to modify All-Hands-AI/agent-sdk and to consider remove the agent-finish action (OR simply re-write the "MessageAction from Agent" into an Agent Finish action -- this is probably simpler)
n
I'm on it! Xingyao Wang can track my progress here.
c
Sorry, why is this a problem?
right now the frontend ends up in two different states after the agent finishes its work
The frontend can read two agent states and decide to behave the same, if that’s what it wants, can’t it?
w
yeah but more generally as an SDK client this is strange behavior--two different recorded states that are effectively the same thing
every frontend/client would need to handle that quirk
c
FWIW it doesn’t seem like a problem for vscode extensions I’ve played with: they typically have two states/display for “ask the user further” and “pretty green - we completed the task”
w
Yeah if our "end with message" flow consistently ended with a question to the user, that would make sense
but 99% of the time the agent is just like "I did what you said lmk if you want more"
c
> Yeah if our "end with message" flow consistently ended with a question to the user, that would make sense I think actually, this is more or less the behavior with sonnet
so it may make sense to merge them
@nutritious-balloon-65098 create a PR in All-Hands-AI/agent-sdk repo to merge "MessageEvent" returned by agent.py with "FinishActionEvent"
n
Conversation is still starting
c
😱
@nutritious-balloon-65098 create a PR in All-Hands-AI/agent-sdk repo to merge "MessageEvent" returned by agent.py with "FinishActionEvent"
lolsob 1
n
Conversation is still starting