feat: add interrupt recovery queries#340
Merged
liujuanjuan1984 merged 1 commit intomainfrom Mar 27, 2026
Merged
Conversation
Collaborator
Author
|
自审结论:
|
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
按模块说明
1. interrupt registry / persistence
details持久化,覆盖 memory 与 database backend。identity和interrupt_type过滤的 pending interrupt 查询能力,确保恢复查询与现有 callback 校验语义保持一致。permission.asked/question.asked时,将 normalizeddetails一并写入本地 registry,保证恢复结果与实时流中的 interrupt metadata 结构一致。2. JSON-RPC extension / routing
opencode.permissions.list与opencode.questions.list。user_identity返回对应 pending items;当 identity 不可解析时返回空列表。3. Agent Card / OpenAPI / docs
a2a.interrupt.*callback。4. tests
204等场景。验证
./scripts/doctor.shruff checkruff format --checkmypy src testspytest --cov=src --cov-report=term-missing说明
/permission//questionpending list。#335,但仅与#166的身份/可见范围约束相关,不应关闭#166。