Skip to content

Conversation

@veracioux
Copy link
Contributor

@veracioux veracioux commented Nov 7, 2025

Fixes #3951.

function AssistantMessage(props: { message: AssistantMessage; parts: Part[]; last: boolean }) {
const local = useLocal()
const { theme } = useTheme()
const inProgress = createMemo(() => !props.message.time.completed)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess this kinda works but I belive this will still be showing the wrong state sometimes during the agent loop i dont think this is the best solution

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't come up with a scenario where this is the wrong indicator, either empirically or analytically. Or even if there is such a scenario, IMO it should definitely be considered a bug in the Session.prompt loop.

An alternative solution could be to use the session busy/idle state. It has the added benefit of being robust to opening a session after abruptly closing OC where OC didn't get the chance to update the session/message states (e.g. after closing the terminal window where OC is running).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the more I think about it, the more I believe that the best solution is to make inProgress equal to isLastAssistantMessage && session.busy (pseudo code).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think this approach is reasonable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Progress animation doesn't stop when you "deny" a command

3 participants