refactor: remove AskController and related routes, update endpoint URLs (now all streamlined to agents route)

This commit is contained in:
Danny Avila 2025-06-21 14:52:17 -04:00
parent 71e850106e
commit 1b387779db
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
13 changed files with 6 additions and 758 deletions

View file

@ -792,7 +792,8 @@ class BaseClient {
userMessage.tokenCount = userMessageTokenCount;
/*
Note: `AskController` saves the user message, so we update the count of its `userMessage` reference
Note: `AgentController` saves the user message if not saved here
(noted by `savedMessageIds`), so we update the count of its `userMessage` reference
*/
if (typeof opts?.getReqData === 'function') {
opts.getReqData({
@ -801,7 +802,8 @@ class BaseClient {
}
/*
Note: we update the user message to be sure it gets the calculated token count;
though `AskController` saves the user message, EditController does not
though `AgentController` saves the user message if not saved here
(noted by `savedMessageIds`), EditController does not
*/
await userMessagePromise;
await this.updateMessageInDatabase({