Revise PR #283: taosmd/mentions.py is added by BOTH this PR and #233, and here it has no caller - #304
Revise PR #283: taosmd/mentions.py is added by BOTH this PR and #233, and here it has no caller#304jaylfc wants to merge 1 commit into
Conversation
- normalise _normalise_handle in authorize_sender identity comparison so @-prefixed and bare handles compare equal case-insensitively - record @mentions in a2a_send via MentionStore so mentions.py has a caller - update changelog fragment for both changes
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
Warning Review limit reached
Next review available in: 7 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| self._conn: sqlite3.Connection | None = None | ||
|
|
||
| async def init(self) -> None: | ||
| self._conn = _db.connect(self._db_path) |
| self._conn: sqlite3.Connection | None = None | ||
|
|
||
| async def init(self) -> None: | ||
| self._conn = _db.connect(self._db_path) |
There was a problem hiding this comment.
WARNING: Connection leak in init() if executescript() raises
self._conn is assigned before executescript() runs. If that call throws (e.g. SQLite error, disk full, permission denied), the live connection is left open with no cleanup path — the exception propagates and close() is never called.
Wrap the assignment and executescript in a try/except that closes the connection on failure, or reorder so the connection is only assigned after executescript() succeeds.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
| mention_store: MentionStore | None = None | ||
| if db_path is not None: | ||
| mention_store = MentionStore(db_path) | ||
| await mention_store.init() |
There was a problem hiding this comment.
WARNING: mention_store connection leaks if archive.record() raises
mention_store is created and init() is called at lines 471–472, but there is no try/finally wrapping the archive.record() call at line 484. If that call raises (e.g. archive storage full, IOError), the exception propagates out of a2a_send without ever reaching the close() calls at lines 499–500, leaking a SQLite connection on every such failure.
Add a try/finally (or async context manager) around the archive write and mention recording to guarantee mention_store.close() runs on all exit paths.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (5 files)
Fix these issues in Kilo Cloud Reviewed by step-3.7-flash · Input: 246.3K · Output: 27.1K · Cached: 1.2M |
BLOCKED. The suite is fully green and two things are broken behind it, one of them a revocation bypass.Reviewed on a trial merge with current master ( That green is the reason this review exists rather than an approval. Both defects below are on the tree that would land, and neither is reachable by any test in the suite. BLOCKER 1:
|
|
BLOCKED and closed. Revision card |
CARD TITLE (intent, not commit subject): Revise PR #283: taosmd/mentions.py is added by BOTH this PR and #233, and here it has no caller
Autonomous build of board card tsk-fjy3o7.
so @-prefixed and bare handles compare equal case-insensitively
Files:
changelog.d/tsk-fjy3o7-mention-revocation.md | 14 +++++
taosmd/mentions.py | 87 ++++++++++++++++++++++++++++
taosmd/registry_auth.py | 5 +-
taosmd/service.py | 38 ++++++++++++
tests/test_identity_normalise.py | 21 +++++++
5 files changed, 163 insertions(+), 2 deletions(-)