Skip to content

Fix ModuleNotFoundError: copilot.types removed in github-copilot-sdk 0.3.0 - #10

Draft
johnstel with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-runtime-startup-failure
Draft

Fix ModuleNotFoundError: copilot.types removed in github-copilot-sdk 0.3.0#10
johnstel with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-runtime-startup-failure

Conversation

Copilot AI commented May 29, 2026

Copy link
Copy Markdown

python web_start.py fails at startup because copilot.types no longer exists in github-copilot-sdk>=0.3.0PermissionRequest and PermissionRequestResult were moved to copilot.session.

Changes

  • src/copilot_helpers.py — fix import path:
    # before
    from copilot.types import PermissionRequest, PermissionRequestResult
    # after
    from copilot.session import PermissionRequest, PermissionRequestResult
  • requirements.txt — bump floor from >=0.1.25 to >=0.3.0 to reflect the actual tested baseline and prevent installing a version where the old path still existed

…ermissionRequestResult

The github-copilot-sdk>=0.3.0 no longer exposes a `copilot.types` module.
Both PermissionRequest and PermissionRequestResult are available in
`copilot.session`. Update the import and bump the minimum SDK version
in requirements.txt to document the tested baseline.

Fixes: ModuleNotFoundError: No module named 'copilot.types'
Copilot AI changed the title [WIP] Fix runtime startup failure from copilot.types import mismatch Fix ModuleNotFoundError: copilot.types removed in github-copilot-sdk 0.3.0 May 29, 2026
Copilot AI requested a review from johnstel May 29, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix runtime startup failure from copilot.types import mismatch

2 participants