Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

feat: wire output files into Context Panel files tab#100

Merged
tulsi-builder merged 21 commits intomainfrom
tulsi/context-panel-files
Apr 3, 2026
Merged

feat: wire output files into Context Panel files tab#100
tulsi-builder merged 21 commits intomainfrom
tulsi/context-panel-files

Conversation

@tulsi-builder
Copy link
Copy Markdown
Collaborator

@tulsi-builder tulsi-builder commented Apr 3, 2026

Summary

  • Adds a Files tab to the Context Panel showing all output files (artifacts) from the current session
  • Files are extracted from the existing ArtifactPolicyContext — no new data stores or backend changes
  • Each file card shows a file type icon, filename, and directory path (click to open folder)
  • Includes a search bar to filter files by name or path
  • Non-existent files are automatically filtered out via async pathExists check
  • Recognizes edit/update/modify tools as write-oriented (previously only write/create/save were recognized)

Changes

  • ArtifactPolicyContext.tsx — added SessionArtifact type and getAllSessionArtifacts() method
  • artifactPathPolicyCore.ts — expanded isWriteOrientedTool to recognize edit/update/modify/patch tools
  • artifactPathPolicy.ts — re-exported inferHomeDirFromRoots
  • FilesList.tsx — new component with file type icons (code, json, markdown, spreadsheet, image), search bar, and card-style rows matching the Skills view
  • ContextPanel.tsx — replaced placeholder with FilesList, fixed width constraint (w-full on Tabs)
  • Tests for FilesList and updated ContextPanel tests

Depends on

PR #94 (grouped tool calls with per-tool-call artifact candidates) — once merged, rebase this branch onto main for full per-tool-call artifact support.

Test plan

  • Open a session, have the agent create/edit files, verify they appear in Files tab
  • Click a file row — opens file in native default app
  • Click directory path — opens containing folder
  • Search bar filters files by name and path
  • Switch to an old session — verify retroactive file wiring works
  • Files that no longer exist on disk should not appear
  • Verify all 8 FilesList tests and 2 ContextPanel tests pass
    [
Screen.Recording.2026-04-03.at.2.20.24.PM.mov

](url)
🤖 Generated with Claude Code

tulsi-builder and others added 5 commits April 3, 2026 14:27
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf469634f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/features/chat/ui/FilesList.tsx Outdated
Comment thread .gitignore Outdated
@tulsi-builder tulsi-builder force-pushed the tulsi/context-panel-files branch from cf46963 to 24277de Compare April 3, 2026 21:31
@tulsi-builder tulsi-builder merged commit 26dd61e into main Apr 3, 2026
8 checks passed
@tulsi-builder tulsi-builder deleted the tulsi/context-panel-files branch April 3, 2026 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant