Skip to content

fix(naga): 新版NagaAgent回调端口与逻辑#51

Merged
69gg merged 11 commits intomainfrom
feature/naga-2
Mar 15, 2026
Merged

fix(naga): 新版NagaAgent回调端口与逻辑#51
69gg merged 11 commits intomainfrom
feature/naga-2

Conversation

@69gg
Copy link
Owner

@69gg 69gg commented Mar 15, 2026

摘要

  • 重构 NagaStore,按 bind_uuid 管理当前绑定、绑定历史、终态请求和 in-flight delivery,修复绑定/解绑/发送之间的竞态问题
  • 补齐幂等语义:重复 bind、重复回调、重复解绑都不会再误伤新一代绑定;远端提交失败时保留 pending 并复用同一个 bind_uuid 重试
  • 修正 /naga 的可见性条件,以及 OpenAPI 中 Naga 路由的暴露条件和鉴权声明

验证

  • uv run pytest tests/test_naga_store.py tests/test_naga_command.py tests/test_runtime_api_naga.py
  • uv run pytest tests/test_runtime_api_tool_invoke.py::test_openapi_spec_includes_tool_invoke_paths
  • uv run ruff check src/Undefined/api/naga_store.py src/Undefined/api/app.py src/Undefined/skills/commands/naga/handler.py src/Undefined/skills/commands/naga/policy.py tests/test_naga_store.py tests/test_naga_command.py tests/test_runtime_api_naga.py
  • pre-commit hook:ruff format --checkruff checkmypy

Open with Devin

devin-ai-integration[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@69gg 69gg changed the title fix(naga): 修复绑定状态机的并发与幂等问题 fix(naga): 新版NagaAgent回调端口与逻辑 Mar 15, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@69gg 69gg merged commit 0eef3df into main Mar 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant