Skip to content

fix(explorer): starlette template response convention #139 - #140

Merged
Fszta merged 2 commits into
mainfrom
fix/starlette-template-response-convention
Sep 26, 2026
Merged

Fszta merged 2 commits into
mainfrom
fix/starlette-template-response-convention

Conversation

@Fszta

@Fszta Fszta commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Fixes #139 — the --explore server failed on every page load with
TypeError: unhashable type: 'dict' under starlette ≥ 1.6.

  • Switch TemplateResponse to the request-first keyword form
    (supported since starlette 0.29, so compatible with both old and new versions)
  • Add coverage for GET / — the only template-rendering route, previously untested
    (in-process TestClient + e2e against the real server)
  • Escalate DeprecationWarning to test failures so the next upstream API
    removal is caught while still a warning

Thanks @zilto for raising this

The legacy (name, context-with-request) shim was removed in starlette 1.6, breaking every page load of the --explore server with .The keyword-arg form works on both sides of the 1.6 boundary. Fixes #139
@Fszta
Fszta merged commit dd2a2a1 into main Sep 26, 2026
4 checks passed
@Fszta
Fszta deleted the fix/starlette-template-response-convention branch September 26, 2026 10:48
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.

bug: parrant --explore server is broken

1 participant