picoclaw/pkg/agent
程智超0668000959 d6371fcb68 fix(agent): close base64 encoder on io.Copy error path
Previously when io.Copy to the base64 encoder failed, encoder.Close()
was skipped. This left the encoder's internal buffer unflushed.
Now always call Close() and handle both copy and close errors
explicitly.
2026-06-25 15:23:34 +08:00
..
adapters feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
interfaces feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
agent.go Merge pull request #2904 from SiYue-ZO/feature/fix-agent-loop-stability 2026-06-14 21:22:53 +02:00
agent_command.go fix(context): expose history tokens and remove leaked state files 2026-06-06 00:28:32 +08:00
agent_event.go feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
agent_init.go Merge pull request #2904 from SiYue-ZO/feature/fix-agent-loop-stability 2026-06-14 21:22:53 +02:00
agent_inject.go refactor(agent): Agent Looper refactor phase2, restructure pipeline and rename loop files to agent (#2585) 2026-04-21 10:55:50 +08:00
agent_mcp.go fix(agent): suppress MCP discovery when no servers are selectable 2026-05-08 13:48:47 +02:00
agent_mcp_test.go fix(agent): suppress MCP discovery when no servers are selectable 2026-05-08 13:48:47 +02:00
agent_media.go fix(agent): close base64 encoder on io.Copy error path 2026-06-25 15:23:34 +08:00
agent_message.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
agent_options.go feat(events): add runtime event bus 2026-04-26 15:36:03 +08:00
agent_outbound.go feat(chat,seahorse): persist and display model_name across history (#2897) 2026-05-20 13:42:21 +08:00
agent_steering.go fix(agent): drain scoped follow-up queue when pending stop skips turn startup 2026-05-05 19:24:15 +02:00
agent_stop.go fix(agent): don't arm pending stop when /stop targets idle session 2026-05-04 13:10:02 +02:00
agent_test.go Merge pull request #2904 from SiYue-ZO/feature/fix-agent-loop-stability 2026-06-14 21:22:53 +02:00
agent_transcribe.go refactor(agent): Agent Looper refactor phase2, restructure pipeline and rename loop files to agent (#2585) 2026-04-21 10:55:50 +08:00
agent_utils.go Merge pull request #2904 from SiYue-ZO/feature/fix-agent-loop-stability 2026-06-14 21:22:53 +02:00
agent_utils_test.go fix(agent): send SVG attachments as files 2026-05-05 19:36:09 +08:00
context.go fix(agent): handle os.Getwd error in NewContextBuilder without behavior regression 2026-06-08 16:52:00 +08:00
context_budget.go fix(seahorse): enforce budget on fresh tail and rebuild paths 2026-05-18 21:11:21 +02:00
context_budget_test.go fix(seahorse): enforce budget on fresh tail and rebuild paths 2026-05-18 21:11:21 +02:00
context_cache_test.go feat(web): support image messages in pico chat (#2299) 2026-04-03 14:15:20 +08:00
context_legacy.go fix(agent): replace WaitGroup with Cond-based counter and conditionalize panic cleanup 2026-06-15 01:32:13 +08:00
context_manager.go feat(agent): /clear now clears seahorse DB in addition to JSONL 2026-04-13 11:04:45 +08:00
context_manager_test.go test(events): migrate agent tests to runtime events 2026-04-26 16:23:58 +08:00
context_seahorse.go fix(seahorse,session): preserve created_at across history bootstrap 2026-05-26 14:05:20 +08:00
context_seahorse_test.go fix(seahorse,session): preserve created_at across history bootstrap 2026-05-26 14:05:20 +08:00
context_seahorse_unsupported.go fix(agent): disable seahorse context manager on freebsd/arm (#2417) 2026-04-08 10:57:22 +08:00
context_test.go fix(agent): preserve reused tool call IDs across turns (#2528) 2026-04-15 20:18:09 +08:00
context_usage.go fix(context): expose history tokens and remove leaked state files 2026-06-06 00:28:32 +08:00
definition.go fix(agent): fail closed on invalid AGENT frontmatter 2026-03-29 23:41:32 +02:00
definition_test.go chore: revert unrelated golines formatting 2026-03-29 14:06:19 +02:00
discovery.go fix(agent): hide discovery when spawn is unavailable 2026-05-08 22:23:50 +02:00
discovery_test.go fix(agent): hide discovery when spawn is unavailable 2026-05-08 22:23:50 +02:00
dispatch_request.go fix(session): address review regressions 2026-04-13 22:51:44 +08:00
dispatch_request_test.go fix(session): address review regressions 2026-04-13 22:51:44 +08:00
event_payloads.go feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
eventbus_test.go refactor(events): emit agent runtime events directly 2026-04-26 16:55:02 +08:00
events.go feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
events_runtime.go fix(events): keep runtime observers non-blocking 2026-04-27 13:09:03 +08:00
evolution_bridge.go fix(evolution): skip cold path for heartbeat turns 2026-06-24 23:29:46 +08:00
evolution_bridge_test.go fix(evolution): skip cold path for heartbeat turns 2026-06-24 23:29:46 +08:00
hook_mount.go fix(events): keep runtime observers non-blocking 2026-04-27 13:09:03 +08:00
hook_mount_test.go fix(events): keep runtime observers non-blocking 2026-04-27 13:09:03 +08:00
hook_process.go refactor(events): remove legacy agent event bus 2026-04-26 16:39:35 +08:00
hook_process_test.go test(events): prefer runtime hook observation 2026-04-26 16:28:41 +08:00
hooks.go refactor(events): emit agent runtime events directly 2026-04-26 16:55:02 +08:00
hooks_test.go refactor(events): remove legacy agent event bus 2026-04-26 16:39:35 +08:00
instance.go fix(agent): route media turns to image models and embed onboard workspace 2026-06-12 22:33:51 +02:00
instance_test.go fix(agent): treat empty AGENT.md tools as allow none 2026-05-09 10:35:13 +02:00
legacy_events.go fix(agent): log warning when LoadAndDelete type assertion fails 2026-06-06 00:32:49 +08:00
legacy_events_test.go feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
llm_media.go fix(agent): keep media routing scoped to current turn 2026-06-13 11:38:08 +02: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
model_resolution.go feat(chat,seahorse): persist and display model_name across history (#2897) 2026-05-20 13:42:21 +08:00
model_resolution_test.go feat(chat,seahorse): persist and display model_name across history (#2897) 2026-05-20 13:42:21 +08:00
pipeline.go refactor(agent): Agent Looper refactor phase2, restructure pipeline and rename loop files to agent (#2585) 2026-04-21 10:55:50 +08:00
pipeline_execute.go fix(agent): limit media routing to the active turn 2026-06-13 00:25:45 +02:00
pipeline_execute_test.go feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
pipeline_finalize.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
pipeline_llm.go Merge pull request #2904 from SiYue-ZO/feature/fix-agent-loop-stability 2026-06-14 21:22:53 +02:00
pipeline_setup.go fix(agent): keep media routing scoped to current turn 2026-06-13 11:38:08 +02:00
pipeline_streaming.go fix(agent): honor explicit thinking off (#2898) 2026-05-21 11:07:39 +08:00
pipeline_streaming_test.go fix(agent): honor explicit thinking off (#2898) 2026-05-21 11:07:39 +08:00
prompt.go fix(agent): limit media routing to the active turn 2026-06-13 00:25:45 +02:00
prompt_contributors.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
prompt_test.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
prompt_turn.go fix(agent): keep media routing scoped to current turn 2026-06-13 11:38:08 +02:00
registry.go fix(agent): hide discovery when spawn is unavailable 2026-05-08 22:23:50 +02:00
registry_test.go refactor(agent): source discovery identity from AGENT.md frontmatter 2026-03-29 22:43:20 +02:00
runtime_event_logger.go fix runtime event logger reload and shutdown 2026-04-26 19:28:26 +08:00
runtime_event_logger_test.go fix(agent): replace WaitGroup with Cond-based counter and conditionalize panic cleanup 2026-06-15 01:32:13 +08:00
runtime_event_test.go test(events): migrate agent tests to runtime events 2026-04-26 16:23:58 +08:00
steering.go feat(agent): stop command 2026-05-04 08:41:17 +02:00
steering_test.go fix(test): read back history after SetHistory in steering test for CreatedAt normalization 2026-05-22 13:15:56 +08:00
subturn.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
subturn_test.go Merge pull request #2531 from is-Xiaoen/feat/delegate-tool 2026-05-07 11:25:41 +08:00
thinking.go fix(agent): honor explicit thinking off (#2898) 2026-05-21 11:07:39 +08:00
thinking_test.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00
tool_allowlist.go fix(agent): treat empty AGENT.md tools as allow none 2026-05-09 10:35:13 +02:00
tool_allowlist_test.go fix(agent): treat empty AGENT.md tools as allow none 2026-05-09 10:35:13 +02:00
turn_context.go refactor(events): emit agent runtime events directly 2026-04-26 16:55:02 +08:00
turn_coord.go fix(agent): keep media routing scoped to current turn 2026-06-13 11:38:08 +02:00
turn_coord_test.go fix(agent): retry transient LLM HTTP errors using provider error classifier 2026-06-02 19:58:09 +08:00
turn_profile_policy.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
turn_profile_test.go fix(session): normalize CreatedAt in SessionManager AddFullMessage/SetHistory 2026-05-22 13:42:35 +08:00
turn_state.go Merge pull request #2904 from SiYue-ZO/feature/fix-agent-loop-stability 2026-06-14 21:22:53 +02:00
turn_state_test.go fix(agent): preserve active turn during context retry rebuild 2026-05-19 09:18:39 +02:00