picoclaw/pkg/agent
Administrator 3611034795 fix(agent): implement Critical flag, complete tools.SubTurnConfig, remove redundant subTurnResults
- Critical flag was declared but never acted on; non-critical SubTurns
  now break out of the iteration loop when IsParentEnded() returns true
- tools.SubTurnConfig was missing Critical/Timeout/MaxContextRunes,
  making those fields unreachable from the tools layer; added fields and
  wired them through AgentLoopSpawner.SpawnSubTurn
- Removed subTurnResults sync.Map from AgentLoop — it was a redundant
  alias for the same channel already stored in turnState.pendingResults;
  dequeuePendingSubTurnResults now reads directly via activeTurnStates
- Replace hardcoded concurrencySem size 5 with maxConcurrentSubTurns constant
- Update affected tests to match new dequeuePendingSubTurnResults API
2026-03-18 18:22:06 +08:00
..
context.go Merge pull request #1207 from afjcjsbx/feat/debug-mode-no-truncate 2026-03-10 17:13:44 +01:00
context_cache_test.go fix(agent): invalidate system prompt cache for global/builtin skills (#845) 2026-03-03 18:25:00 +08:00
context_test.go fix deepseek-chat bug (#1066) 2026-03-06 16:04:31 +08:00
eventbus_mock.go feat(agent): port subturn PoC to refactor/agent branch 2026-03-16 14:31:32 +08:00
instance.go fix(tools): allow sandbox access to temp media files 2026-03-14 12:02:06 +08:00
instance_test.go add systray ui for all platform (#1649) 2026-03-17 14:12:32 +08:00
loop.go fix(agent): implement Critical flag, complete tools.SubTurnConfig, remove redundant subTurnResults 2026-03-18 18:22:06 +08:00
loop_mcp.go Fix/Add warning tips for MCP initialization when no valid servers configured (#1497) 2026-03-13 16:43:00 +08:00
loop_media.go feat: expose local file paths for non-image media to enable agent file tools (#1516) 2026-03-14 12:09:11 +08:00
loop_test.go feat: expose local file paths for non-image media to enable agent file tools (#1516) 2026-03-14 12:09:11 +08:00
memory.go refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08:00
mock_provider_test.go feat(fmt): Fix formatting 2026-02-19 22:05:15 +02:00
registry.go feat(session): integrate JSONL persistence into agent loop (#1170) 2026-03-10 15:14:09 +08:00
registry_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
steering.go fix(agent): implement Critical flag, complete tools.SubTurnConfig, remove redundant subTurnResults 2026-03-18 18:22:06 +08:00
steering_test.go feat(agent): steering (#1517) 2026-03-16 00:08:16 +08:00
subturn.go fix(agent): implement Critical flag, complete tools.SubTurnConfig, remove redundant subTurnResults 2026-03-18 18:22:06 +08:00
subturn_test.go fix(agent): implement Critical flag, complete tools.SubTurnConfig, remove redundant subTurnResults 2026-03-18 18:22:06 +08:00
thinking.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00
thinking_test.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00
turn_state.go fix(agent): implement Critical flag, complete tools.SubTurnConfig, remove redundant subTurnResults 2026-03-18 18:22:06 +08:00