Repository navigation
feat(reports): show session links in each member report - #154192
Conversation
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 039f0ccc-e1b2-4a86-b4d7-caa366507645
|
🦞👀 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 September 20, 2026, 9:25 PM ET / September 21, 2026, 01:25 UTC (Revision 5). ClawSweeper reviewWhat this changesAdds viewer-authorized conversation links to member reports and person-history pages, with identity matching, owner-filtered pagination, and response-time permission checks. Merge readiness✅ Ready for maintainer review The contribution remains useful and has no blocking findings. The previous test-cost follow-up is satisfied, and the supplied visual and production HTTP evidence supports the changed behavior. Priority: P2 Review scores
Verification
How this fits togetherThe Reports plugin combines stored team activity with current session metadata from the Gateway. It renders conversation links under the viewer’s permissions and opens them through existing Control UI navigation. flowchart TD
A[Member report request] --> B[Linked profile matching]
B --> C[Viewer-authorized session discovery]
C --> D[Owner filtering and pagination]
D --> E[Report HTML]
E --> F{Current request authority?}
F -->|Valid| G[Conversation links]
F -->|Changed or expired| H[Unauthorized response]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +180, Tests +289, Docs +14. Total +483 across 13 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep current-session links as viewer-specific presentation over canonical identity, discovery, and navigation owners, separate from stored historical reports. Do we have a high-confidence way to reproduce the issue? Not applicable to the primary feature request: current main lacks member-level session links. The accompanying authorization repair has a source-inspected production HTTP regression and supplied red/green evidence. Is this the best way to solve the issue? Yes. The patch extends the existing Reports plugin and reuses canonical ownership filtering, viewer authorization, and conversation navigation without changing stored report formats. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 700ce434cebf. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Incorporate the owning fix from #154206 before revalidating #154192. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 21ce70c5-62fc-403e-8766-7468a1366783
|
Merged via squash.
|
) * feat(reports): show session links in each member report Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 039f0ccc-e1b2-4a86-b4d7-caa366507645 * feat(reports): link each person report to owned sessions Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 21ce70c5-62fc-403e-8766-7468a1366783 --------- Co-authored-by: steipete <[email protected]>
What Problem This Solves
Reports shows each member’s activity but does not link directly to that person’s OpenClaw conversations. Related: #154020.
User Impact
Adds direct session links to person-history pages and daily, weekly, and monthly member sections, including quiet members and alias-filtered reports. The links are labeled Current work / owned sessions, separate from historical activity.
Only sessions visible to the current viewer are shown. Unlinked or ambiguous identities are explained instead of guessed. A permission change during rendering fails closed; refreshing evaluates the new policy.
Why This Change Was Made
Reuse verified linked GitHub profiles, canonical owner-filtered session discovery before pagination, and the existing conversation-navigation bridge. Identity lookup and session pages are request-local; member queries are deduplicated and limited to four concurrent calls. Stored reports, historical counts, summaries, Markdown and JSON remain unchanged.
CI dependency
Hosted run
35546855732failed four Claw workspace-snapshot tests incore-unit-src-security-3. The owning defect is a shared test read-pool singleton surviving file teardown, allowing a mockedfleet.listreply to reach a later realworkspace.snapshotconsumer. The separate repair is #154206; it adds the missing singleton retirement and an ordered fail-before/pass-after regression. No workspace/schema repair is added to this Reports diff.A clean exact-main replay at
67358cf64e2191d17327b21a24dcbf8cf6174434passed both focused tests and the original 218-file cohort (2,841 passed, 16 skipped), but does not guarantee the hosted per-worker assignment and does not clear the failure. The owning repair landed as93d69d5a747432362027bbdf71eb06c96aac6eb6. Reports is now refreshed onto that repaired main at050cfe88ce336420edc7232a44e22c8c82efae5b; the 13-file feature patch is byte-for-byte unchanged. The composed Reports/HTTP/Claw/ordered-lifecycle proof passed on this exact head: 167 tests across five shards, 55.70s Vitest wall, command exit 0 (Blacksmith proof). The source capsule verified head and tree; the owned lease was stopped and independently confirmed completed. Exact-head hosted CI passed, including the requiredopenclaw/ci-gate. Tested mergeb4b125c207969c267224af8f3bc8a8e35b71df9chas the same tree as head050cfe88ce336420edc7232a44e22c8c82efae5b.Evidence
Per-file test cost
Measured on the exact green head with
/usr/bin/time -p env CI=1 pnpm test <file> --maxWorkers=1, one file per invocation on Blacksmith Testbox (run). All four invocations passed; the lease is independently confirmed completed. Command wall includes startup/build preparation; Vitest duration includes that invocation’s collection/import/setup/test work.extensions/team-reports/src/work-sessions.test.tsextensions/team-reports/src/http.test.tsextensions/team-reports/src/render/site.test.tstest/plugins/team-reports-http.gateway.test.ts*Hosted CI uses verbose case reporting: these are sums of rounded case durations, not file-suite or wall time. Hosted per-file suite/wall measurements are unavailable. The extension invocation took 46.61 s across 19 files (293 cases); its full job took 161 s. The Gateway invocation took 162.34 s across 118 files (1,734 cases); its full job took 392 s. These aggregate values are not attributed to individual files.
The real HTTP suite pays for production cookie authorization, SQLite session discovery, and response-time revocation. The new role-policy regression fails through the actual socket before the repair; a renderer-only test would not protect that contract.
Daily member report
Before
After
Person history page
Before
After
Worked on by
Work sessions
View the OpenClaw team session