perf: open long sessions without re-reading every tool result
A chat page carried every finished tool result, and the app fetched it twice when opening a chat, with a 20 second deadline. On a slow link a long session (this one was ~530 KB per page) timed out. - ask for shelled pages (x-openchamber-part-shells: v1), which drops finished tool results: ~180 KB for the same page - fetch one message by id when its tool row is opened - keep tool and step updates local from events instead of re-reading the page on every step, and only resync after a real disconnect - 60 second deadline with a retry button Bump version to 0.1.11 (build 12).
This commit is contained in:
1 parent
0e34d82a06
commit
e67490e768
8 files changed
+256
-20
No files matched your search
@@ -290,6 +290,11 @@ func (c *Client) do(ctx context.Context, method, path string, ro requestOptions,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return c.send(req, out)
|
||||
}
|
||||
|
||||
// send performs an already-built request and decodes it.
|
||||
func (c *Client) send(req *http.Request, out any) error {
|
||||
res, err := c.http.Do(req)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user