From b43e797274c20bef8ecd1e2e131ce4f44ecbdde2 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Tue, 24 Feb 2026 17:37:28 +0900 Subject: [PATCH] fix: remove unimplemented SetWorkDir and GetContextInfo from loop.go These were accidentally included in 8f68847 but depend on context.go changes that are not yet committed, breaking the build. Co-Authored-By: Claude Opus 4.6 --- pkg/agent/loop.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index 4c2f8c4bc..6996db788 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -811,9 +811,6 @@ func (al *AgentLoop) runAgentLoop(ctx context.Context, agent *AgentInstance, opt // 1. Update tool contexts al.updateToolContexts(agent, opts.Channel, opts.ChatID) - // 1a. Set session-specific working directory for bootstrap file lookup - agent.ContextBuilder.SetWorkDir(agent.EffectiveWorkspace(opts.SessionKey)) - // 1b. Inject peer session awareness into system prompt projectPath := agent.ContextBuilder.GetPlanWorkDir() if projectPath == "" { @@ -2459,19 +2456,6 @@ func (al *AgentLoop) GetSessionStats() *stats.Stats { return &s } -// GetContextInfo returns the bootstrap file resolution and directory context for the default agent. -func (al *AgentLoop) GetContextInfo() (workDir, planWorkDir, workspace string, bootstrap []BootstrapFileInfo) { - agent := al.registry.GetDefaultAgent() - if agent == nil { - return "", "", "", nil - } - workspace = agent.Workspace - planWorkDir = agent.ContextBuilder.GetPlanWorkDir() - workDir = agent.ContextBuilder.workDir - bootstrap = agent.ContextBuilder.ResolveBootstrapPaths() - return -} - // GetSystemPrompt returns the system prompt last sent to the LLM. // Falls back to building from current state if no LLM call has occurred yet. func (al *AgentLoop) GetSystemPrompt() string {