opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Feat/image preview tabs

Open shuv1337 opened this issue 3 weeks ago • 0 comments

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

shuv1337 avatar Dec 30 '25 21:12 shuv1337