Repository navigation
refactor(nextcloud-talk): consume canonical network opt-in - #164258
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 4:12 AM ET / 08:12 UTC (Revision 3). ClawSweeper reviewWhat this changesNextcloud Talk’s messages, reactions, bot checks, and room lookups now use the documented nested private-network setting, with an existing test fixture updated accordingly. Merge readiness✅ Ready for maintainer review The work remains necessary: current main still reads legacy aliases through the compatibility helper. No introduced defect was found, and the recorded validation choice resolves the previous updater-proof blocker. Priority: P2 Review scores
Verification
How this fits togetherThe Nextcloud Talk plugin turns resolved account configuration and channel operations into HTTP requests. Its network setting determines whether the shared request guard permits private server addresses. flowchart TD
A[Channel and account settings] --> B[Resolved account]
C[Messages and channel lookups] --> D[Nextcloud HTTP request]
B --> E[Canonical private-network permission]
E --> F[Shared network guard]
D --> F
F --> G[Nextcloud server or blocked request]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +8, Tests +1. Total +9 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep canonical configuration authoritative in bundled callers while preserving public SDK compatibility and Doctor’s documented retirement recovery. Do we have a high-confidence way to reproduce the issue? Yes, at source level: main’s whole-config calls reach an SDK helper that ORs legacy true with canonical false. No runtime reproduction was executed. Is this the best way to solve the issue? Yes. Selecting the existing canonical boolean at bundled callers removes the competing compatibility read while preserving the external SDK contract and migration owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6b9da2bdeee. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
5d8c549 to
8db261c
Compare
What Problem This Solves
Nextcloud Talk still passed whole account configurations into the SDK network helper, allowing message sends, reactions, bot preflight, and room lookup to read retired flat network aliases.
User Impact
These four runtime callers now consume only
network.dangerouslyAllowPrivateNetwork, the documented setting. Existing Doctor retirement guidance remains the upgrade path for old aliases. Public SDK exports and their external-plugin compatibility contracts remain unchanged.Why This Change Was Made
Configuration normalization belongs to Doctor. This follow-up to #163535 removes the remaining Nextcloud runtime alias reads. The existing config-threading test fixture gains the required
configobject; its assertions are unchanged. The requested rebase preserves main's newer URL normalization and message-body construction.Update behavior: no state format, migration, updater, package version, or plugin compatibility floor changes. Maintainer-selected validation for this config-consumption cut is exact-head hosted CI; the previous package-floor limitation does not block this source change. No successful published-driver update cell is claimed.
Evidence
Production (
src/**andextensions/**, excluding tests/support/fixtures): +12 / -4 / net +8. Four changed files, three production files. No new test cases.git diff --checkpasses. Fresh independent Codex review is clean through P2 for8db261cc40a8d870ee42f34dd8db0b3da6b79c4c. Exact-head CI passed all selected tests, types, lint, boundaries, and ratchets in 352 seconds from first job start to final completion. The changed-extension test job took 116 seconds, including setup. No new test cases or standalone test benchmark were added; no local tests/builds were run. Full paginated GitHub accounting confirms three production files at +12/-4/net +8.