Serve the Pipelines chat tools over a loopback MCP endpoint and register it with Claude Code, Codex and OpenCode chats
This commit is contained in:
@@ -461,7 +461,7 @@ func (c *Chat) PromptWithMessageIDModelFiles(ctx context.Context, id, text, mess
|
||||
var refused *rpcCallError
|
||||
if errors.As(err, &refused) && refused.Message == "thread not found: "+id {
|
||||
var resumed json.RawMessage
|
||||
resumed, err = c.call(ctx, "thread/resume", map[string]any{"threadId": id, "excludeTurns": true})
|
||||
resumed, err = c.resumeThread(ctx, map[string]any{"threadId": id, "excludeTurns": true}, id)
|
||||
if err == nil {
|
||||
var response struct {
|
||||
Thread struct {
|
||||
@@ -549,7 +549,7 @@ func (c *Chat) Create(ctx context.Context, title, directory string) (protocol.Ch
|
||||
if strings.TrimSpace(directory) == "" {
|
||||
return protocol.ChatSession{}, errors.New("a directory is required")
|
||||
}
|
||||
raw, err := c.call(ctx, "thread/start", map[string]any{
|
||||
raw, err := c.startThread(ctx, map[string]any{
|
||||
"cwd": directory,
|
||||
"sandbox": "workspace-write",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user