[PR #6475] Feat/image preview tabs #11922

Closed
opened 2026-02-16 18:16:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6475

State: closed
Merged: No


Summary

  • Always call list() for parent directory in file fetch (removes unnecessary conditional)
  • Add image preview support in file tabs
  • SVG files get a toggle to switch between rendered image and source code

Changes

  • packages/app/src/context/local.tsx: Remove conditional check before list(parent)
  • packages/app/src/pages/session.tsx: New FileTabContent component for rendering images and code with SVG toggle

Proof

Before:

https://github.com/user-attachments/assets/89f3ac56-2960-4450-81cf-ac8b24e2c0de

After:

https://github.com/user-attachments/assets/302b7b48-4856-4673-8b77-c97bc972873c

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6475 **State:** closed **Merged:** No --- ## Summary - Always call `list()` for parent directory in file fetch (removes unnecessary conditional) - Add image preview support in file tabs - SVG files get a toggle to switch between rendered image and source code ## Changes - `packages/app/src/context/local.tsx`: Remove conditional check before `list(parent)` - `packages/app/src/pages/session.tsx`: New `FileTabContent` component for rendering images and code with SVG toggle ## Proof Before: https://github.com/user-attachments/assets/89f3ac56-2960-4450-81cf-ac8b24e2c0de After: https://github.com/user-attachments/assets/302b7b48-4856-4673-8b77-c97bc972873c
yindo added the pull-request label 2026-02-16 18:16:51 -05:00
yindo closed this issue 2026-02-16 18:16:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11922