Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Files panel opens Markdown externally instead of in the artifact viewer

Aperta Adatta ai principianti
#171 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
macos, tauri, typescript
Ambito
desktop, frontend

Direzione di ricerca

Inizia in FilesList.tsx e ispeziona l’entry point ArtifactPolicyContext.openInApp e i test esistenti del routing dei clic. Esegui prima i test mirati di FilesList, poi i test circostanti di artifact-viewer e fai semplicemente una verifica. È completato quando Markdown si apre nel visualizzatore degli artefatti nella barra laterale, mentre i file non supportati continuano ad aprirsi tramite il sistema operativo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Before filing

  • I searched open and closed issues for duplicates.
  • I reproduced this on the latest release.
  • This report covers one bug.

Closest existing issue

None found.

What's broken

Clicking a Markdown file in a chat's right-rail Files tab always delegates to macOS. It opens the registered external editor even though Berd already supports Markdown in its in-app artifact viewer.

Steps to reproduce

  1. Launch Berd v0.6.2 on macOS Apple Silicon.
  2. Open a chat with a project or workspace attached. No agent turn is required.
  3. Open the right rail's Files tab.
  4. Click README.md.

Expected behavior

README.md opens in Berd's sidebar artifact viewer.

Actual behavior

macOS opens README.md in the registered external editor. On this machine, that editor is Xcode.

Frequency

Every time. The path is deterministic.

Version

Berd v0.6.2, the latest release as of 2026-08-22.

Operating system

macOS 15.7.1 on Apple Silicon.

Model or provider

Not applicable. The bug occurs without an agent turn.

Relevant logs

No relevant log output. The problem is in the frontend click-routing path.

Cause and verified repair direction

FilesList.tsx calls Tauri's openPath(path) for every file. This bypasses ArtifactPolicyContext.openInApp.

A local proof patch routes file clicks through openInApp(path, basename(path)). Supported Markdown and images then open in Berd, while unsupported files still use the operating system.

Verification completed against that patch:

  • The new integration test failed before the change because the artifact-viewer state stayed empty.
  • The focused FilesList tests pass: 6 of 6.
  • The surrounding artifact-viewer tests pass: 49 of 49.
  • just check passes.
  • The full test run passes: 6,776 tests across 575 files, with one existing skip.
  • An isolated app-driver run clicked a real fixture README.md. It created one [data-artifact-viewer-panel], rendered one Markdown h1, matched the exact file in the viewer header, and did not start Xcode.
Lingua principale
TypeScript
Stelle
989
Fork
127
Merge medio
2g 7h
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di block/berd

Tutte le issue di block/berd

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.