Skip to content

Consolidate duplicate runtime paths - #223

Merged
QueryPlanner merged 2 commits into
mainfrom
codex/blacki-code-reduction
Nov 29, 2026
Merged

QueryPlanner merged 2 commits into
mainfrom
codex/blacki-code-reduction

Conversation

@QueryPlanner

@QueryPlanner QueryPlanner commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Share Telegram multipart uploads and API response handling.
  • Remove the unused Telegram StreamSession and its dedicated tests. Cover non-400 edit errors through the active tool progress path.
  • Reuse the native image path for Telegram photos and image documents, and share protected replies for Gmail and Google Health.
  • Reuse dashboard pagination validation and SQLite transaction handling.

This PR removes 487 net lines across six runtime files, about 1.1% of runtime source. The original 50% target remains open.

Verification

  • Ruff format and lint checks passed.
  • mypy passed.
  • The latest local pytest run had 2,860 passes at 100% coverage. The Docker environment round-trip was skipped because the local production image was unavailable.
  • The local server smoke test confirmed matching health, readiness, dashboard, and invalid pagination responses.

@QueryPlanner QueryPlanner left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No merge blockers. This pass removes 216 net lines, about 0.5% of the Python runtime. The original 50% reduction goal remains open.

I reproduced a SQLite commit failure on both branches. The refactored helper rolls back and clears the transaction. The helper on main leaves it open. Transaction helper

Ruff, mypy, and all 2,899 tests that ran without Docker passed locally after adjusting the test environment. GitHub CI recorded 2,902 passes at 100% coverage, and a separate CI job passed the Docker deployment and startup checks. Code Quality · Deployment checks

Comment thread src/blacki/telegram/streaming.py Resolved
@QueryPlanner
QueryPlanner merged commit 5b3287c into main Nov 29, 2026
3 checks passed
@QueryPlanner
QueryPlanner deleted the codex/blacki-code-reduction branch November 29, 2026 09: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