Skip to content

Commit 4d90cf0

Browse files
committed
Fixes
1 parent 08a5bc0 commit 4d90cf0

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/run-tck.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ jobs:
5353
path: tck/a2a-tck
5454
ref: ${{ env.TCK_VERSION }}
5555

56-
- name: Install TCK dependencies
56+
- name: Install uv and Python dependencies
5757
run: |
58-
cd tck/a2a-tck
5958
pip install uv
6059
uv pip install -e .
60+
working-directory: tck/a2a-tck
6161

6262
- name: Start SUT
6363
run: |

tck/sut_agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class SUTAgentExecutor(AgentExecutor):
3939
def __init__(self) -> None:
4040
"""Initializes the SUT agent executor."""
4141
self.running_tasks = set()
42-
self.last_context_id = None
4342

4443
async def cancel(
4544
self, context: RequestContext, event_queue: EventQueue
@@ -51,7 +50,7 @@ async def cancel(
5150

5251
status_update = TaskStatusUpdateEvent(
5352
task_id=api_task_id,
54-
context_id=self.last_context_id or str(uuid.uuid4()),
53+
context_id=context.context_id or str(uuid.uuid4()),
5554
status=TaskStatus(
5655
state=TaskState.canceled,
5756
timestamp=datetime.now(timezone.utc).isoformat(),
@@ -67,7 +66,6 @@ async def execute(
6766
user_message = context.message
6867
task_id = context.task_id
6968
context_id = context.context_id
70-
self.last_context_id = context_id
7169

7270
self.running_tasks.add(task_id)
7371

0 commit comments

Comments
 (0)