Fix workspace file previews#956
Conversation
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Fix workspace file previews This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Use the agent workspace browser APIs for the Workspace page so regular workspace files can be listed and previewed instead of limiting preview to session-referenced files. Keep legacy agents.files fallback for older gateways and cover the projection behavior in tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1686a2c to
def36aa
Compare
|
Codex review: stale review; fresh review needed. Summary Next step |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Fix workspace file previews This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
agents.workspace.list/agents.workspace.getAPIs when the gateway supports full workspace browsing.sessions.files.list/sessions.files.get, then the narrow legacyagents.files.*managed-file fallback for older gateways.Validation
.�uild.ps1— passeddotnet test . ests dOpenClaw.Shared.Tests dOpenClaw.Shared.Tests.csproj --no-restore— passed: 2722 passed, 31 skippeddotnet test . ests dOpenClaw.Tray.Tests dOpenClaw.Tray.Tests.csproj --no-restore— passed: 1651 passedReal behavior proof
WorkspaceFilesModelTests.FromAgentWorkspaceList_MapsAllWorkspaceFilesAsPreviewableverifiesagents.workspace.listfile rows are previewable even when they are not session-referenced/read/edited.WorkspaceFilesModelTests.FromAgentWorkspaceList_MapsAllWorkspaceFilesAsPreviewableverifies emptyparentPathremains a root parent path so first-level folders can navigate back up.2026.6.11does not advertiseagents.workspace.*; the page now falls back tosessions.files.*first and only then toagents.files.*.agents.workspace.list/get; the current stable gateway does not.Rubber-duck review
Dual rubber-duck review completed before PR creation. Fixed the first five findings: root parent navigation, split list/get capability fallback, missing-file semantics, capability reset on client change, and local search filtering. Also corrected the stable fallback chain to prefer
sessions.files.*beforeagents.files.*.