CoAgent8
    Preparing search index...

    Function handleSessionHistory

    • Pages and renders public conversation history for a session handle.

      Parameters

      • args: {
            cursor?: string;
            limit?: number;
            session_handle: string;
            workspace_path?: string;
        }
      • workspace: string = ...

      Returns Promise<
          {
              content: { text: string; type: "text" }[];
              structuredContent: {
                  events: (
                      ConversationEvent & {
                          fragment?: {
                              complete: boolean;
                              offsetBytes: number;
                              totalBytes: number;
                          };
                      }
                  )[];
                  nextCursor: string
                  | null;
                  revision: string;
                  schemaVersion: number;
                  sessionHandle: string;
              };
          },
      >

      Each event's sequence is its stored log position. Consolidated snapshots combine streaming deltas into messages and the Markdown view filters internal lifecycle events (such as turn_started and tool_started), so gaps in sequence numbering do not indicate lost events.