Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug]: `taskId` without `contextId` creates a new context instead of inheriting it

Open
#1,206 3 comments 0 reactions 1 assignee View on GitHub

@rohityan is already working on this.

Since Aug 25, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active

Research direction

Look at the _request_context_builder.build method and the _context_id_generator.generate logic in the codebase. The issue is about context inheritance when only a taskId is provided. Start by finding where task context is fetched and how it should be passed to the message. Check the spec for the exact inference rule. Run existing tests related to task and context creation to see the current behavior.

Written by the indexing model from the issue text.

Description

component: server status:awaiting response status:stale
What happened?

Spec:

Agents MUST infer contextId from the task if only taskId is provided

Code:

        request_context = await self._request_context_builder.build(
            params=params,
            task_id=original_task_id,
            context_id=original_context_id,
            task=None,
            context=call_context,
        )

Then further...

if not self._context_id and not self._params.message.context_id:
    self._params.message.context_id = self._context_id_generator.generate(...)

I found no sight of using the task's context, it seems to generate it anyway. But please correct me if I'm wrong.

Relevant log output

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
Python
Stars
2.2k
Forks
496
Avg merge
2d 6h
Merged PRs (30d)
19

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a2aproject/a2a-python

All issues in a2aproject/a2a-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.