Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
fix(computer): leave DeveloperInstructions to Codex for the web tool line
muterC76f41f4ee53a
diff --git a/apps/computer/local-daemon/internal/linger/context/resolver.go b/apps/computer/local-daemon/internal/linger/context/resolver.goindex bfa94a5c..974ddec6 100644--- a/apps/computer/local-daemon/internal/linger/context/resolver.go+++ b/apps/computer/local-daemon/internal/linger/context/resolver.go@@ -166,7 +166,7 @@ func (r ExecutionResolver) Resolve(ctx context.Context, command protocol.CommandCodexVersion: installation.Version,TenantID: command.TenantID, OwnerActorID: binding.OwnerActorID, AgentID: command.AgentID,}- if command.HostAccess == "trusted" || r.ToolGuide != "" || command.RuntimeType == "claude" {+ if command.HostAccess == "trusted" || r.ToolGuide != "" {spec.DeveloperInstructions = &developerInstructions}// The profile path is stable and depends only on the Agent-level credential,diff --git a/apps/computer/local-daemon/internal/linger/context/resolver_test.go b/apps/computer/local-daemon/internal/linger/context/resolver_test.goindex 19c3c709..19c6fe85 100644--- a/apps/computer/local-daemon/internal/linger/context/resolver_test.go+++ b/apps/computer/local-daemon/internal/linger/context/resolver_test.go@@ -277,12 +277,11 @@ func TestExecutionResolverNamesClaudeWebTools(t *testing.T) {if err != nil {t.Fatal(err)}- named := strings.Contains(spec.SystemPrompt, "select:WebSearch,WebFetch")if runtimeType == "claude" {- if !named || spec.DeveloperInstructions == nil || *spec.DeveloperInstructions != "Developer\n\n"+claudeWebToolGuide {+ if spec.SystemPrompt != "Base\n\nDeveloper\n\n"+claudeWebToolGuide {t.Fatalf("Claude web tools not named: %+v", spec)}- } else if named || spec.DeveloperInstructions == nil || *spec.DeveloperInstructions != "Developer" {+ } else if strings.Contains(spec.SystemPrompt, "select:WebSearch,WebFetch") || spec.DeveloperInstructions == nil || *spec.DeveloperInstructions != "Developer" {t.Fatalf("Codex got the Claude web tool guide: %+v", spec)}})