mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-26 10:48:44 +00:00
Merge branch 'fix/websocket-streaming-issues' of https://github.com/siteboon/claudecodeui into fix/websocket-streaming-issues
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user