Revert "feat: reconcile timed questions with legacy default"

This commit is contained in:
Turtle authored and GitHub committed 2026-09-24 20:06:09 +08:00
1 parent 6e45fd5bea
commit 32905d5ab5
101 files changed
+40579 -59074

No files matched your search

-3
View File
@@ -180,7 +180,6 @@ export const SERVICE_WALK_EXEMPTIONS: Record<string, string> = {
configForms: 'client-side shared entry forms — packages/client/ui-settings/README.md owns the API',
chatFileMentions: 'client-side slot-contract accessor (ChatFileMentions) — packages/client/ui-chat/README.md owns the API',
shortcuts: 'client-side interface-typed keyboard service — packages/client/shortcuts/README.md owns the API',
userQuestionPanels: 'client-side slot-contract accessor (UserQuestionPanels) — packages/client/ui-tool/README.md owns the API',
commandUi: 'client-side interface-typed browser service — packages/client/ui-commands/README.md owns the API',
feedbackUi: 'client-side feedback dialog service — packages/client/ui-message-feedback/README.md owns the API',
conversation: 'client-side interface-typed browser service — packages/client/ui-conversation/README.md owns the API',
@@ -417,7 +416,6 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
FileUploadReceiptId: 'attachment.md',
FileUploadValue: 'attachment.md',
SessionStartSource: 'core.md',
ToolCallId: 'core.md',
SessionLogSnapshot: 'session-query.md',
SessionSurfaceSnapshot: 'session-query.md',
ApprovalOutcome: 'approval.md',
@@ -731,7 +729,6 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
ResolvedCredential: 'credentials.md',
AskUserQuestionAnswer: 'user-questions.md',
AskUserQuestionRequest: 'user-questions.md',
TimedUserQuestionResult: 'user-questions.md',
UserQuestionProvider: 'user-questions.md',
WebFetchProvider: 'web.md',
WebFetchRequest: 'web.md',
+2 -2
View File
@@ -248,13 +248,13 @@ const TOOL_PACKAGES: ToolPackage[] = [
dir: 'tool-ask-user',
source: 'packages/interaction/tool-ask-user/src/index.ts',
requires: ['ctx.tools', 'ctx.userQuestions'],
writes: ['tool/call', 'tool/result after an answer or timeout', 'late user/message'],
writes: ['tool/call', 'tool/result after a UI/provider answers the question'],
async mount(ctx) {
await ctx.plugin(UserQuestionService)
await ctx.plugin(ToolAskUser)
},
note:
'ask_user_question keeps the original blocking behavior by default; set `mode: timed` to opt into a foreground timeout and pending result while the question remains answerable. In timed mode, `timeout: -1` keeps that call blocking indefinitely.',
'ask_user_question pauses the tool call until the active UI provider returns a human answer.',
},
{
pkg: '@deepseek-ai/dsh-tools',
+4
View File
@@ -502,6 +502,9 @@
"packages/client/ui-chat/tests/conversation.client.spec.ts": {
"299fcafb8671655372c99c1dbe14e2705536d569bf475ca09693f87b3b1182da": 1
},
"packages/client/ui-chat/tests/skill-name-projector.client.spec.ts": {
"cc5bd784736472e7293f8b0e2d889b0cf1c156a218457571390871164e35b5d5": 1
},
"packages/client/ui-chat/tests/tool-call-tree.client.spec.ts": {
"427f7efc431dec431f6707ea0e4431c54fafc97efbcc9c93865d29f2488300d9": 1
},
@@ -1338,6 +1341,7 @@
"0c7b023d04a2d6744d9844f27de8438231e642fd058e2b75e113a1996711014a": 1
},
"packages/interaction/tool-ask-user/tests/tool-ask-user.spec.ts": {
"60655aea47d3d8667f90341b58e3faaf64d12670b9592af837aa40ecf7b83583": 1,
"d423bbcd1caff7aab2e2de52564efbc9061e775620a530157805a43d851c6fe9": 1
},
"packages/interaction/user-approval/tests/approval.spec.ts": {
-30
View File
@@ -1051,36 +1051,6 @@
"symbol": "AskUserQuestionAnswer",
"source": "packages/interaction/user-questions/src/types.ts"
},
{
"doc": "docs/subsystems/user-questions.md",
"symbol": "AskUserQuestionRequestEvent",
"source": "packages/interaction/user-questions/src/types.ts"
},
{
"doc": "docs/subsystems/user-questions.md",
"symbol": "TimedUserQuestionResult",
"source": "packages/interaction/user-questions/src/index.ts"
},
{
"doc": "docs/subsystems/user-questions.md",
"symbol": "UserQuestionState",
"source": "packages/interaction/user-questions/src/types.ts"
},
{
"doc": "docs/subsystems/user-questions.md",
"symbol": "PendingUserQuestion",
"source": "packages/interaction/user-questions/src/types.ts"
},
{
"doc": "docs/subsystems/user-questions.md",
"symbol": "SettledUserQuestion",
"source": "packages/interaction/user-questions/src/types.ts"
},
{
"doc": "docs/subsystems/user-questions.md",
"symbol": "UserQuestionProjectionView",
"source": "packages/interaction/user-questions/src/types.ts"
},
{
"doc": "docs/subsystems/user-questions.md",
"symbol": "UserQuestionError",