picoclaw/pkg/agent
Nikita Nafranets a4b6cea103 fix: distinguish network timeouts from context window errors
HTTP timeouts (context deadline exceeded, Client.Timeout) were
incorrectly classified as context window errors, triggering useless
history compression. Replace broad substring checks ("context",
"token", "length") with specific patterns for real context limit
errors and explicitly exclude timeout errors from that path.

Additionally, timeout errors were not retried at all — the retry
loop only handled context window errors. Now timeouts are retried
up to 2 times with exponential backoff (5s, 10s).
2026-02-24 21:54:44 +03:00
..
context.go refactor: cleanup dead code and turn on dead code detection in CI (#515) 2026-02-24 21:52:25 +08:00
instance.go refactor(config): rename model field to model_name 2026-02-23 16:55:06 +08:00
instance_test.go fix: Templates update (#485) 2026-02-19 19:16:37 +01:00
loop.go fix: distinguish network timeouts from context window errors 2026-02-24 21:54:44 +03:00
loop_test.go feat(fmt): Fix formatting 2026-02-19 22:05:15 +02:00
memory.go Merge branch 'main' into fix-formatting 2026-02-20 20:02:53 +02:00
mock_provider_test.go feat(fmt): Fix formatting 2026-02-19 22:05:15 +02:00
registry.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
registry_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00