Files
openchamber/packages
Roberto Berto 14c40c9615 feat(chat): add quick-open file icon in tool card header
Add a small external-link icon next to the tool display name in the
collapsed tool card header (Write/Edit/MultiEdit/ApplyPatch), so the
target file can be opened in the side panel (web/desktop) or editor
(VS Code) without expanding the card.

On web/desktop (no runtime.editor), the icon falls back to
useUIStore.openContextFile{AtLine} + mobileActions.openFiles(), matching
the existing openEntryFile pattern. The existing handleMainClick only
opens the file when runtime.editor is available, so this icon is the
first way to open a file from the tool header in the browser.

Path resolution reuses getPrimaryToolPath + toAbsoluteFilePath; the diff
tools also resolve the first changed line and primary diff via the
existing getFirstChangedLineFromMetadata / getPrimaryDiffFromMetadata
helpers. The icon stops click propagation so the card-toggle-on-click
behavior is preserved.

Adds the chat.toolPart.openFile i18n key across all 11 locales.
2026-08-25 14:32:33 +00:00
..
2026-08-23 02:10:48 +03:00
2026-08-23 02:10:48 +03:00
2026-08-23 02:10:48 +03:00