Skip to content

Migrate from flask._app_ctx_stack to app attributes for Flask 3 compat - #241

Merged
hfaran merged 1 commit into
masterfrom
fix/flask3-app-ctx-stack-migration
Jun 1, 2026
Merged

Migrate from flask._app_ctx_stack to app attributes for Flask 3 compat#241
hfaran merged 1 commit into
masterfrom
fix/flask3-app-ctx-stack-migration

Conversation

@hfaran

@hfaran hfaran commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaces all usages of the removed private flask._app_ctx_stack API with direct attributes on the app object (app.channels, app.groups, app.dms, app.dm_users, app.mpims, app.mpim_users, app.slack_path)
  • Lifts version caps: Flask <3.0.0>=3.0.0, Werkzeug <3.0.0>=3.0.0, frozen-flask <2.0 upper bound removed
  • Resolves to Flask 3.1.3 + Werkzeug 3.1.8, unblocking the Dependabot security fix in Bump werkzeug from 2.3.8 to 3.1.6 #240
  • Removes unused import flask from main.py

Test plan

  • poetry lock && poetry install resolves successfully
  • pytest passes
  • Manual smoke test: slack-export-viewer -z <archive.zip> loads channels and DMs correctly

🤖 Generated with Claude Code

Replace all usage of the removed private flask._app_ctx_stack API with
direct attributes on the app object, and lift the Flask/Werkzeug version
caps to >=3.0.0 to allow the Dependabot security bump (PR #240).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hfaran
hfaran merged commit 88d6b6d into master Jun 1, 2026
2 checks passed
@hfaran
hfaran deleted the fix/flask3-app-ctx-stack-migration branch June 1, 2026 03:25
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.

1 participant