Repository navigation
fix(sessions): normalize package resource loading - #129098
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 4:03 AM ET / 08:03 UTC. ClawSweeper reviewWhat this changesThe PR centralizes session package-resource resolution so direct local files, package filters, and missing sources follow the same loader path. Merge readinessKeep open for the labeled maintainer review: no blocking correctness finding was found, but the repair is not on current main and the protected maintainer label requires explicit human handling. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherSession settings supply local, npm, git, and package resource sources to the package manager. It resolves enabled extensions, skills, prompts, and themes for the session resource loader to load into an agent session. flowchart LR
A[Session settings] --> B[Package source parsing]
B --> C[Resolved package target]
C --> D[Resource discovery and filters]
D --> E[Enabled resource tables]
E --> F[Session resource loader]
F --> G[Agent session resources]
Decision needed
Why: The PR is a substantial internal owner-module simplification and carries the protected maintainer label, so automated review should not substitute for the required human merge judgment. Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -158, Tests +80, Other 0. Total -78 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Merge the single canonical package-target flow after the session-package owner confirms the focused regression coverage and exact-head checks are current. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible with high confidence: current main's direct local-file branch marks the extension enabled without consulting its package filter, and the added focused tests encode that case. The read-only review did not execute the test command. Is this the best way to solve the issue? Yes: placing target normalization and filter application in the package manager preserves one authoritative enabled-state flow; filtering later in the resource loader would retain the split policy the patch removes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7ba58abd93d6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Summary
onMissingbehavior share the canonical loader pathRoot cause
Package filtering and resource loading derived the same target information through separate branches. Those branches disagreed for direct-file filters, filterless object resources, missing local resources, and some parsed target shapes.
Verification
b341a07747f76cf615a34ce167a934944a61d9c657b8e8ed66aaa3be30425792Production delta: -158. Test delta: +80. Total net: -78. No public API, configuration, schema, migration, authorization, or documented behavior change.
Changelog: not required for this internal resource-loader repair.