Skip to content

Python: [Bug]: TypeError: Cannot read properties of undefined (reading 'commandIdentifiers') #7553

Description

@wonderyl

Description

The agents couldn't run bash commands.

Code Sample

async with GitHubCopilotAgent(
            client=self._client,
            name="V2 Expert",
            instructions="",
            default_options={
                "model": "gpt-5.3-codex",
                "timeout": 3600,
                "on_permission_request": lambda req, env: PermissionDecisionApproveForSession(),
            },
        ) as agent:
            session = self._sessions.get(input.v2_dir)
            if session is None:
                session = AgentSession()
                self._sessions[input.v2_dir] = session
            response = await agent.run(prompt, session=session)

Error Messages / Stack Traces

: Cannot read properties of undefined (reading 'commandIdentifiers')

Package Versions

agent-framework 1.13.0, agent-framework-github-copilot 1.0.1, github-copilot-sdk 1.0.2

Python Version

Python 3.12.3

Additional Context

No response

Metadata

Metadata

Labels

agentsUsage: [Issues, PRs], Target: Single agentpythonUsage: [Issues, PRs], Target: PythonreproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflow

Type

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions