Skip to content

Conversation

@lukasdotcom
Copy link
Member

@lukasdotcom lukasdotcom commented Jul 17, 2025

Implements easy part of #306
Does some refactoring of assistant.js for the setProgress function to make the change easier
Also updates nextcloud-vue-libraries due to: nextcloud-libraries/nextcloud-vue#7117

Pictures

The warning in a task
image
In the last commit also added this to the chat. Same behavior of if scheduled for 5 minutes it will show this warning.
image

@lukasdotcom lukasdotcom marked this pull request as draft July 17, 2025 20:17
@lukasdotcom lukasdotcom changed the title feat: add warning when task not picked up after 5 minutes feat: better errors for failures shown to user Jul 17, 2025
@lukasdotcom lukasdotcom changed the title feat: better errors for failures shown to user feat: show when task is taking too long Jul 18, 2025
@lukasdotcom lukasdotcom marked this pull request as ready for review July 18, 2025 13:49
@lukasdotcom lukasdotcom requested review from janepie and julien-nc July 18, 2025 13:50
@lukasdotcom lukasdotcom force-pushed the feat/warning-when-not-pickedup branch from 5fac587 to f29dfd0 Compare July 18, 2025 21:08
Copy link
Member

@janepie janepie left a comment

Choose a reason for hiding this comment

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

Looks good!
Some small things:

  • in the chat with Context Agent, there may be more than one task happening (text2text, then a tool call, then a new text2text task). When the first task is picked up, the message disappears and doesn't come up again (maybe for 10 minutes or more). Can we either check for other tasks or keep the warning when it once appears until there is a new chat message?
  • I'd clarify what "this" is in the message. Maybe that Assistant is correctly configured? Wdyt?
  • nitpick: there is an o missing in tooLongForScheduling

@lukasdotcom
Copy link
Member Author

Looks good! Some small things:

* in the chat with Context Agent, there may be more than one task happening (text2text, then a tool call, then a new text2text task). When the first task is picked up, the message disappears and doesn't come up again (maybe for 10 minutes or more). Can we either check for other tasks or keep the warning when it once appears until there is a new chat message?

About this. I'm not sure how I can know which task is the one context agent is currently on. I couldn't find a way to see that. Right now it just makes sure that the first context agent task is actually picked up by context agent.

* I'd clarify what "this" is in the message. Maybe `that Assistant is correctly configured`? Wdyt?

I had been thinking of maybe mentioning the task name instead, but Assistant is probably best.

* nitpick: there is an o missing in `tooLongForScheduling`

Fixed in newest commit

@lukasdotcom lukasdotcom requested a review from janepie July 21, 2025 16:00
@lukasdotcom
Copy link
Member Author

Implemented changes like discussed in meeting to not hide warning once it shows up in the chat.

@lukasdotcom lukasdotcom force-pushed the feat/warning-when-not-pickedup branch 2 times, most recently from 8a7e222 to bdb71ec Compare July 23, 2025 12:07
@lukasdotcom lukasdotcom requested a review from marcelklehr July 23, 2025 12:08
Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Nice!

Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
@julien-nc julien-nc force-pushed the feat/warning-when-not-pickedup branch from bdb71ec to 85dd857 Compare August 1, 2025 09:27
@julien-nc
Copy link
Member

Rebased on main

Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
@lukasdotcom lukasdotcom force-pushed the feat/warning-when-not-pickedup branch from 28bb3bc to ac66c27 Compare August 1, 2025 13:14
@lukasdotcom lukasdotcom requested a review from julien-nc August 1, 2025 13:16
@DaphneMuller
Copy link

@janepie @julien-nc @marcelklehr can this be merged?

Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

👍

@lukasdotcom lukasdotcom merged commit 1ff148c into main Aug 4, 2025
16 checks passed
@lukasdotcom lukasdotcom deleted the feat/warning-when-not-pickedup branch August 4, 2025 11:31
@janepie janepie mentioned this pull request Aug 7, 2025
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.

6 participants