Skip to content

fix: interactive template pick crashes on PromptSession pointer - #205

Merged
ulises-jeremias merged 2 commits into
mainfrom
fix/autocomplete-pointer-kwarg
Jul 17, 2026
Merged

fix: interactive template pick crashes on PromptSession pointer#205
ulises-jeremias merged 2 commits into
mainfrom
fix/autocomplete-pointer-kwarg

Conversation

@ulises-jeremias

Copy link
Copy Markdown
Member

Summary

  • questionary.autocomplete(..., pointer=">") forwards pointer into prompt_toolkit.PromptSession, which rejects it (TypeError) and breaks uvx create-awesome-python-app when picking a template interactively
  • Remove the unsupported kwarg (checkbox prompts keep pointer, which they support)
  • Add a regression test that asserts autocomplete is not called with pointer

Test plan

  • uv run --package create-awesome-python-app pytest packages/create-awesome-python-app/tests/test_interactive.py
  • After 0.2.1 publish: uvx create-awesome-python-app@0.2.1 and confirm template autocomplete works

Made with Cursor

ulises-jeremiasand others added 2 commits July 17, 2026 13:42
questionary.autocomplete forwards unknown kwargs to PromptSession, which
rejects pointer and crashes interactive template picking on uvx.
Co-authored-by: Cursor <cursoragent@cursor.com>
Colored category badges make hard-coded titles fail under CI color settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias
ulises-jeremias merged commit d60c145 into mainJul 17, 2026
13 checks passed
@ulises-jeremias
ulises-jeremias deleted the fix/autocomplete-pointer-kwarg branch July 17, 2026 16:47
@ulises-jeremiasulises-jeremias mentioned this pull request Jul 17, 2026
3 tasks
Sign up for freeto 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.

1 participant

@ulises-jeremias