Repository navigation
Conversation
🔎 Lint report:
|
| Rule | Count |
|---|---|
unsupported-operator |
3 |
invalid-argument-type |
2 |
invalid-assignment |
1 |
unresolved-import |
1 |
unresolved-attribute |
1 |
First entries
tests/gateway/test_reply_to_injection.py:290: [invalid-assignment] invalid-assignment: Object of type `() -> Literal["text"]` is not assignable to attribute `_decide_image_input_mode` of type `def _decide_image_input_mode(self) -> str`
tests/gateway/test_reply_context_security.py:5: [unresolved-import] unresolved-import: Cannot resolve imported module `pytest`
gateway/run.py:9535: [invalid-argument-type] invalid-argument-type: Argument to function `format_channel_context` is incorrect: Expected `str`, found `str | None`
tests/gateway/test_reply_to_injection.py:269: [unsupported-operator] unsupported-operator: Operator `in` is not supported between objects of type `Literal["@file:canary.txt"]` and `str | None`
gateway/run.py:9543: [invalid-argument-type] invalid-argument-type: Argument to function `format_reply_context` is incorrect: Expected `str`, found `str | None`
tests/gateway/test_reply_to_injection.py:308: [unresolved-attribute] unresolved-attribute: Attribute `args` is not defined on `None` in union `_Call | None`
tests/gateway/test_reply_to_injection.py:309: [unsupported-operator] unsupported-operator: Operator `in` is not supported between objects of type `Literal["@file:external.txt"]` and `str | None`
tests/gateway/test_reply_to_injection.py:310: [unsupported-operator] unsupported-operator: Operator `in` is not supported between objects of type `Literal["MOCK_FILE_CANARY"]` and `str | None`
✅ Fixed issues: none
Unchanged: 6744 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Telegram reply quotes and Discord channel-history backfill could contain text written by another sender. The gateway placed both strings in the current user's message before processing
@file/@urlreferences. A third-party@filemarker therefore reached the reference expander under the authorized sender's turn. Reply text was also interpolated raw into[Replying to: "..."], so punctuation could break the visible quote frame.Change
event.text. Quoted replies, channel history, sender names, attachment names, image analysis, and speech transcripts retain their text without activating@file/@url. The sender's own references still work alongside media context.[New message]line bypasses found in independent review.Verification
_prepare_inbound_message_textmethod with a mocked context expander. On base929dd9c0d776186d1e8bf268cccfdb31e0398365, synthetic quote, channel-history, image-analysis, and transcript markers each invoked the expander and surfaced a mock canary. On this branch, none did; the sender's own marker still invoked it. No file or URL was read.[New message]lines with a synthetic spoof; the patched formatter emits one.scripts/run_tests.sh tests/gateway/test_reply_context_security.py -q: 9 passed.pytest tests/gateway/test_reply_to_injection.py tests/gateway/test_session.py -q: 106 passed using the isolated Python 3.13 test interpreter with read-only Python 3.12 site-packages forhttpx. This mixed environment is a local check, not a clean dependency install.git diff --check: passed. Initial CI failures outside these paths are documented in the local assessment; new CI is pending.No live gateway message, model compliance, real file read, network fetch, or terminal command was tested. Draft for security review; please do not merge until the integration tests run.