Skip to content

Add MCP transcript pagination - #75

Merged
pranc1ngpegasus merged 1 commit into
mainfrom
agent/add-mcp-transcript-pagination
Jul 11, 2026
Merged

Add MCP transcript pagination#75
pranc1ngpegasus merged 1 commit into
mainfrom
agent/add-mcp-transcript-pagination

Conversation

@pranc1ngpegasus

Copy link
Copy Markdown
Member

Summary

  • add loopback_seconds to ask_current_conversation, defaulting to 600 seconds
  • add tool-call pagination with cursor and limit
  • return continuation data in the existing text context and namespaced _meta
  • keep pagination state stable across live appends by binding cursors to the session, view, time window, and original append boundary
  • document the behavior and isolate the pagination implementation in its own module

Why

MCP questions previously received every visible transcript segment with no way to bound the time window or retrieve a long transcript incrementally. This adds a bounded default context and optional pagination while preserving the existing local IPC endpoint and MCP 2025-03-26 text response compatibility.

Behavior

  • the lookback window is measured from the latest non-empty segment's end time
  • omitting limit returns all non-empty segments overlapping the window
  • setting limit returns the last entries in Wisp display order and exposes next_cursor for the preceding page
  • continuation calls provide both cursor and limit
  • the desktop /conversation IPC response remains unchanged

Validation

  • cargo fmt --all -- --check
  • cargo test --workspace --exclude wisp-desktop --all-targets
  • cargo clippy --workspace --exclude wisp-desktop --all-targets -- -D warnings
  • git diff --check

@pranc1ngpegasus
pranc1ngpegasus marked this pull request as ready for review July 11, 2026 09:49
@pranc1ngpegasus
pranc1ngpegasus merged commit 57ea6c8 into main Jul 11, 2026
2 checks passed
@pranc1ngpegasus
pranc1ngpegasus deleted the agent/add-mcp-transcript-pagination branch July 11, 2026 09:50
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.

1 participant