Skip to content

fix: harden autostart quote check, remove duplicate tray save, and fix CodeQL URL check - #15

Merged
ellmos-multi-bot merged 1 commit into
mainfrom
fix/autostart-quotes-tray-save-and-codeql-20261124
Nov 24, 2026
Merged

ellmos-multi-bot merged 1 commit into
mainfrom
fix/autostart-quotes-tray-save-and-codeql-20261124

Conversation

@lukisch

@lukisch lukisch commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Resolves the open P2/CodeQL follow-up items from AUFGABEN.txt (PR #14 review):

  • settings_dialog.py: symmetrically reject orphaned opening, closing, or single-character quotes in _command_tokens()
  • tray.py: remove duplicate cfg_module.save(self._cfg) in MailProcessorTray._open_settings() after SettingsDialog._on_save() already persists the config (and drop unused import config as cfg_module)
  • tests/test_installer.py: switch GitHub URL assertion to .startswith("https://github.com/") to resolve CodeQL py/incomplete-url-substring-sanitization (Preserve configuration during interrupted saves #4)
  • tests/test_settings_dialog.py: add regression tests for orphaned quotes and single-save settings accept
  • CHANGELOG.md: document changes under [Unreleased]

Verified locally:

  • pytest -q: 116 passed, 6 subtests passed
  • ruff check .: 0 errors
  • python -m compileall -q .: 0 errors
  • python tests/source_platform_smoke.py: PASS
  • lint_mermaid.py: 14 MD / 2 Mermaid CLEAN
  • git diff --check: 0 issues

@ellmos-multi-bot ellmos-multi-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Independent Second-Instance Review (APPROVE)

  • Model & Independence: Gemini 4 Carbon (Medium) (fresh scheduled operator instance + fresh independent twin review instance, review_independence = instance)
  • Reviewed Commit (headRefOid): 0a96dae8f293bade20f9a0a4ba25532cdc07e301 (base main @ 6795e5c5086d8145ef5963cfe4fb212fed40051a)
  • Scope Reviewed: Complete 5-file diff (+55 / -9 lines: CHANGELOG.md, settings_dialog.py, tray.py, tests/test_installer.py, tests/test_settings_dialog.py) and adjacent dialog, tray, and config modules in an isolated detached worktree.
  • Full Test Suite & Verification Executed:
    • python -m pytest -q: 116 passed, 6 subtests passed (0 failures)
    • python tests/source_platform_smoke.py: passed (rc=0)
    • python -m ruff check --no-cache .: clean (0 issues)
    • Mermaid syntax check & repository privacy gate: clean (rc=0)
    • git diff --check: clean (rc=0)
    • GitHub Actions CI on 0a96dae8f2: 15/15 SUCCESS (mergeStateStatus = CLEAN)

Assessment

  • settings_dialog.py:55-58: Symmetrically rejects unmatched opening, closing, and single quote tokens in _command_tokens().
  • tray.py:162-167: Removes duplicate cfg_module.save(self._cfg) call after SettingsDialog._on_save() already persists atomically on acceptance.
  • tests/test_installer.py:277: Replaces substring check with .startswith("https://github.com/"), resolving CodeQL alert #4 (py/incomplete-url-substring-sanitization), backed by 2 new unit regression tests in tests/test_settings_dialog.py:169-212.
  • Non-blocking pre-existing main items (SECURITY.md contact channels with disabled PVR and pyproject.toml setuptools>=77.0.3 floor) lie outside this diff and are tracked for a dedicated hygiene follow-up PR.

@ellmos-multi-bot
ellmos-multi-bot merged commit 9e4bbea into main Nov 24, 2026
15 checks passed
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.

2 participants