Merge branch 'fix/websocket-streaming-issues' of https://github.com/siteboon/claudecodeui into fix/websocket-streaming-issues

This commit is contained in:
Haileyesus
2026-05-08 15:14:39 +03:00
5 changed files with 69 additions and 16 deletions

View File

@@ -386,7 +386,13 @@ export class CursorSessionsProvider implements IProviderSessions {
try {
const blobs = await this.loadCursorBlobs(sessionId, projectPath);
const allNormalized = this.normalizeCursorBlobs(blobs, sessionId);
const total = allNormalized.length;
const totalNormalized = allNormalized.length;
let total = 0;
for (const msg of allNormalized) {
if (msg.kind !== 'tool_result') {
total += 1;
}
}
if (limit !== null) {
const start = offset;
@@ -394,8 +400,8 @@ export class CursorSessionsProvider implements IProviderSessions {
? []
: allNormalized.slice(start, start + limit);
const hasMore = limit === 0
? start < total
: start + limit < total;
? start < totalNormalized
: start + limit < totalNormalized;
return {
messages: page,
total,