refactor: remove per-followup result attribution

This commit is contained in:
_Kerman
2026-07-30 16:48:28 +08:00
parent f6db60b52c
commit a6baddaaac
72 files changed
+586 -1059

No files matched your search

+5 -4
View File
@@ -10,7 +10,7 @@ import uuid
from collections import deque
from dataclasses import dataclass
from pathlib import Path
from typing import Callable, Literal, TypeAlias, TypeVar
from typing import Callable, TypeAlias, TypeVar
from pydantic import BaseModel
@@ -142,9 +142,9 @@ class HarnessClient:
*,
on_notification: Callable[[Notification], None] | None = None,
notification_subscription: "NotificationSubscription | None" = None,
) -> None:
) -> str:
payload: JsonObject = {"sessionId": session_id, "contentBlocks": content_blocks}
self.request(
response = self.request(
"session/prompt",
payload,
response_model=_SessionPromptResponse,
@@ -152,6 +152,7 @@ class HarnessClient:
notification_filter=self._notification_belongs_to_session_tree(session_id),
notification_subscription=notification_subscription,
)
return response.messageId
def request(
self,
@@ -536,7 +537,7 @@ class NotificationSubscription:
class _SessionPromptResponse(BaseModel):
accepted: Literal[True]
messageId: str
class _ShutdownResponse(BaseModel):