Fix truncation issues in piplan, SQLite storage, and history compression; add PIPlanMaxChars configuration
This commit is contained in:
@@ -225,6 +225,9 @@ func runMessageChannel(ctx context.Context, cfg config.Config, engine *agent.Orc
|
||||
func(ctx context.Context, chatID, userID string, files []llm.InputFile) ([]string, error) {
|
||||
return engine.UploadAndCacheFiles(ctx, chatID, userID, files)
|
||||
},
|
||||
func(ctx context.Context, chatID string, limit int) ([]memory.Message, error) {
|
||||
return engine.GetHistory(chatID, limit)
|
||||
},
|
||||
)
|
||||
default:
|
||||
return fmt.Errorf("unsupported message channel: %s", cfg.MessageChannel)
|
||||
@@ -280,6 +283,14 @@ func buildWebUIStreamForwarder(callback webui.StreamEventCallback, exposeReasoni
|
||||
Content: event.Content,
|
||||
Step: event.Step,
|
||||
})
|
||||
case agent.StreamEventTypeWorkspaceStart, agent.StreamEventTypeWorkspaceDelta, agent.StreamEventTypeWorkspaceEnd:
|
||||
return callback(webui.StreamEvent{
|
||||
Type: webui.StreamEventType(event.Type),
|
||||
Content: event.Content,
|
||||
Step: event.Step,
|
||||
ToolName: event.ToolName,
|
||||
WorkspaceTitle: event.WorkspaceTitle,
|
||||
})
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user