WIP preserve large chat history recovery
This commit is contained in:
@@ -19,7 +19,7 @@ type chatBroker interface {
|
||||
// can order the prompt after the subscription.
|
||||
Stream(ctx context.Context, sessionID string, ready func(), emit func(protocol.ChatEventFrame) error) error
|
||||
Interrupt(ctx context.Context, sessionID string) error
|
||||
Messages(ctx context.Context, sessionID string, limit int) ([]protocol.ChatMessage, error)
|
||||
Messages(ctx context.Context, sessionID string, limit int, cursor string) (protocol.ChatHistoryPage, error)
|
||||
// Sessions lists the endpoint's OpenCode sessions so the handler can
|
||||
// restrict them to the operator's own recorded sessions.
|
||||
Sessions(ctx context.Context) ([]protocol.ChatSession, error)
|
||||
|
||||
Reference in New Issue
Block a user