Skip to content

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented Oct 16, 2025

Changes

Adding a story for the case when generation was canceled when the last message was an ai/reasoning one:

Screenshot 2025-10-16 at 17 09 20

(screenshot from #39717)

@Twixes Twixes requested a review from a team October 16, 2025 15:19
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +572 to +587
const { askMax, setMessageStatus } = useActions(threadLogic)
const { threadRaw, threadLoading } = useValues(threadLogic)
const { dataProcessingAccepted } = useValues(maxGlobalLogic)

useEffect(() => {
if (dataProcessingAccepted) {
setTimeout(() => {
setConversationId(CONVERSATION_ID)
askMax('Show me trends for user signups')
}, 0)
}
}, [dataProcessingAccepted, setConversationId, askMax])

useEffect(() => {
if (threadRaw.length === 2 && !threadLoading) {
setMessageStatus(1, 'canceled')

Choose a reason for hiding this comment

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

P1 Badge Call setMessageStatus with unsupported "canceled" value

This story sets setMessageStatus(1, 'canceled'), but setMessageStatus is typed to accept only the MessageStatus union 'loading' | 'completed' | 'error' from maxLogic/maxThreadLogic. Because no variant named 'canceled' exists, TypeScript will flag this line and the frontend typescript check will fail. Either extend the MessageStatus union and downstream handling to include a canceled state or use one of the existing statuses here.

Useful? React with 👍 / 👎.

Copy link
Contributor

github-actions bot commented Oct 16, 2025

Size Change: 0 B

Total Size: 3.06 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 3.06 MB

compressed-size-action

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.

2 participants