From e9d651751353403f319e2995e3b6f388febd72bb Mon Sep 17 00:00:00 2001
From: Nico Wiedemann
Date: Sat, 7 Nov 2026 15:40:26 +0100
Subject: [PATCH 1/5] Suggest project files when typing @, from a folder linked
to each context
A context can now be linked to its project folder, and typing @ in a stash
suggests the files in it. Picking one writes @src/app.ts, the form Claude Code
uses, with quotes only when the path has whitespace, so an agent working in the
project opens the file directly.
The link is a device-local fact: a folder path means nothing on another
machine. It lives in its own context_folders table with no foreign key, because
every context write is INSERT OR REPLACE, which would reset a column on the row
and fire a cascade. Tests cover a save and a sync pull of the context, and that
the path never reaches the sync payload. The folder is picked in a backend
dialog and the page only ever receives file names, as handover.rs does for
files. The index comes from the ignore crate, so .gitignore is honoured.
A stash in a linked context shows an @path the folder no longer holds as
unresolved, with a same-named file elsewhere as the suggestion. Nothing is
stored beside the path. Context archives carry projectFolder; an import links it
only when the folder exists on this device and never replaces a link already
made here. Signing out asks whether to keep the links, keeping them by default.
Checked with cargo test, clippy and fmt, the frontend tests and a vite build.
Not yet run in the dev build.
Co-Authored-By: Claude Opus 5 (1M context)
---
CHANGELOG.md | 15 +
screenshots/mock-backend.ts | 4 +
src-tauri/Cargo.lock | 63 ++-
src-tauri/Cargo.toml | 3 +
src-tauri/src/db.rs | 107 +++++
src-tauri/src/lib.rs | 6 +
src-tauri/src/project_folders.rs | 420 ++++++++++++++++++
src-tauri/src/transfer.rs | 45 +-
src/app.css | 8 +
src/lib/components/ConfirmationDialog.svelte | 6 +
src/lib/components/ContextManagerItem.svelte | 86 ++++
src/lib/components/Editor.svelte | 130 ++++++
src/lib/components/ImportDialog.svelte | 3 +
src/lib/components/Settings.svelte | 46 +-
src/lib/components/StashCard.svelte | 14 +-
src/lib/i18n/locales/de.json | 22 +-
src/lib/i18n/locales/en.json | 22 +-
src/lib/i18n/locales/zh.json | 22 +-
src/lib/services/desktop-adapter.ts | 22 +-
.../stores/__tests__/context-folders.test.ts | 171 +++++++
src/lib/stores/context-folders.svelte.ts | 134 ++++++
src/lib/types.ts | 33 ++
src/lib/utils/__tests__/file-refs.test.ts | 147 ++++++
src/lib/utils/__tests__/markdown.test.ts | 22 +
src/lib/utils/file-refs.ts | 154 +++++++
src/lib/utils/markdown.ts | 46 +-
26 files changed, 1728 insertions(+), 23 deletions(-)
create mode 100644 src-tauri/src/project_folders.rs
create mode 100644 src/lib/stores/__tests__/context-folders.test.ts
create mode 100644 src/lib/stores/context-folders.svelte.ts
create mode 100644 src/lib/utils/__tests__/file-refs.test.ts
create mode 100644 src/lib/utils/file-refs.ts
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4a1a981..89e834b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,21 @@ popover, not for the person who wrote the commit.
## [Unreleased]
+### Added
+
+- **Type `@` to reference a file from your project.** Link a context to its project folder in
+ the context manager, and typing `@` in a stash suggests the files in it. Picking one writes
+ `@src/app.ts` into the stash, the same form Claude Code uses (paths with spaces are quoted),
+ so an AI tool working in that project can open the file directly. Files ignored by
+ `.gitignore` are left out. The link is saved only on this device and is never synced, so
+ each computer can point at its own copy of the project
+- **Stashes show when a referenced file has moved.** In a context with a linked folder, an
+ `@path` that no longer exists is shown dashed and underlined, and hovering it suggests a file
+ of the same name elsewhere in the project. The stash text itself is never changed
+- Exporting a context includes its project folder. Importing restores the link when that folder
+ exists on this device, and skips it otherwise. Signing out asks whether to keep this device's
+ folder links, and keeps them by default
+
## [1.11.6] - 2026-11-05
### Fixed
diff --git a/screenshots/mock-backend.ts b/screenshots/mock-backend.ts
index 9cc4972..70ac13b 100644
--- a/screenshots/mock-backend.ts
+++ b/screenshots/mock-backend.ts
@@ -198,6 +198,10 @@ export function installMockBackend(overrides: Partial = {}): void {
return 'You are a precise engineering assistant. Rewrite the note as a task.';
case 'write_reference_file':
return `/home/dev/.stashpad/cache/${payload?.contextId}/${payload?.stashId}/refs/${payload?.targetId}.md`;
+ case 'get_context_folders':
+ return [];
+ case 'list_context_files':
+ return { files: [], truncated: false };
case 'get_system_prompt_path_str':
return '/home/dev/.stashpad/system-prompt.md';
case 'e2ee_status':
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index a427db6..a6c7a48 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -570,6 +570,16 @@ dependencies = [
"tinyvec",
]
+[[package]]
+name = "bstr"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f"
+dependencies = [
+ "memchr",
+ "serde_core",
+]
+
[[package]]
name = "bumpalo"
version = "3.20.2"
@@ -1055,6 +1065,25 @@ dependencies = [
"crossbeam-utils",
]
+[[package]]
+name = "crossbeam-deque"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
+dependencies = [
+ "crossbeam-epoch",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-epoch"
+version = "0.9.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
+dependencies = [
+ "crossbeam-utils",
+]
+
[[package]]
name = "crossbeam-utils"
version = "0.8.21"
@@ -2208,6 +2237,19 @@ dependencies = [
"xkeysym",
]
+[[package]]
+name = "globset"
+version = "0.4.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f98b0d85522dc0a824cfebbc9594ff4a9b289c568bea0370319dfbdf20ccdd2d"
+dependencies = [
+ "aho-corasick",
+ "bstr",
+ "log",
+ "regex-automata",
+ "regex-syntax",
+]
+
[[package]]
name = "gobject-sys"
version = "0.18.0"
@@ -2733,6 +2775,22 @@ dependencies = [
"icu_properties",
]
+[[package]]
+name = "ignore"
+version = "0.4.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "484be5657551d7868d67587df967fb4fcbe9d266a761cc855aaa148fda0b3cc7"
+dependencies = [
+ "crossbeam-deque",
+ "globset",
+ "log",
+ "memchr",
+ "regex-automata",
+ "same-file",
+ "walkdir",
+ "winapi-util",
+]
+
[[package]]
name = "image"
version = "0.25.9"
@@ -4666,9 +4724,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.14"
+version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
dependencies = [
"aho-corasick",
"memchr",
@@ -5571,6 +5629,7 @@ dependencies = [
"futures-util",
"global-hotkey",
"hkdf",
+ "ignore",
"keyring",
"log",
"mime_guess",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 13ba185..1a89532 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -74,6 +74,9 @@ tokio = { version = "1.50.0", features = ["time", "macros"] }
# not need, and every archive we read or write uses deflate.
zip = { version = "2", default-features = false, features = ["deflate"] }
serde_yaml = "0.9"
+# Walks a context's linked project folder for the editor's `@path` picker. ripgrep's walker,
+# so .gitignore, .ignore and git's excludes are honoured without reimplementing them.
+ignore = "0.4.30"
# Apple Intelligence (Foundation Models) - macOS 26+ only
# keyring ships NO default features and, without one, silently compiles its in-memory
diff --git a/src-tauri/src/db.rs b/src-tauri/src/db.rs
index 03b8edf..5a23d2e 100644
--- a/src-tauri/src/db.rs
+++ b/src-tauri/src/db.rs
@@ -176,6 +176,20 @@ impl DbManager {
[],
)?;
+ // The project folder each context is linked to on this device. Its own table, not a
+ // column on `contexts`: every context write there is INSERT OR REPLACE, which would
+ // reset a column the statement does not name, so each save or sync pull would unlink
+ // the folder. No foreign key either, for the same reason - REPLACE deletes the row
+ // and a cascade would fire. Sync never reads or writes this table.
+ self.conn.execute(
+ "CREATE TABLE IF NOT EXISTS context_folders (
+ context_id TEXT PRIMARY KEY,
+ path TEXT NOT NULL,
+ linked_at INTEGER NOT NULL
+ )",
+ [],
+ )?;
+
// Check/Migrate syntax column
let syntax_exists: bool = self
.conn
@@ -722,6 +736,47 @@ impl DbManager {
Ok(contexts)
}
+ /// Every context's linked project folder on this device, as `(context_id, path)`.
+ pub fn get_context_folders(&self) -> Result> {
+ let mut stmt = self
+ .conn
+ .prepare("SELECT context_id, path FROM context_folders")?;
+ let rows = stmt.query_map([], |row| Ok((row.get(0)?, row.get(1)?)))?;
+ rows.collect()
+ }
+
+ pub fn get_context_folder(&self, context_id: &str) -> Result
+ {:else}
+
+ {/if}
+ {/snippet}
+
diff --git a/src/lib/components/StashCard.svelte b/src/lib/components/StashCard.svelte
index 6ba11bf..62de3d9 100644
--- a/src/lib/components/StashCard.svelte
+++ b/src/lib/components/StashCard.svelte
@@ -73,6 +73,7 @@
type ResolvedRef,
} from "$lib/utils/stash-refs";
import StashRefPreview from "./StashRefPreview.svelte";
+ import FileRefPreview from "./FileRefPreview.svelte";
import ActionButton from "./ActionButton.svelte";
import TagBadge from "./TagBadge.svelte";
import ColorBadge from "./ColorBadge.svelte";
@@ -252,16 +253,7 @@
// `@path`s are checked against the context's project folder, when this device has one.
let fileResolver = $derived(getFileRefResolver(item.contextId));
- let renderedContent = $derived(
- safeParse(
- displayContent,
- displayRef,
- fileResolver && {
- resolve: fileResolver,
- missingLabel: $_("fileRef.missing"),
- },
- ),
- );
+ let renderedContent = $derived(safeParse(displayContent, displayRef, fileResolver));
function refIdAt(target: EventTarget | null): string | null {
const el = (target as HTMLElement | null)?.closest?.("[data-ref-id]");
@@ -321,6 +313,46 @@
hoveredRef = null;
}
+ // The same for `@path` file chips, which only exist when the context has a folder here.
+ let hoveredFile = $state(null);
+ let fileHoverTimeout: ReturnType | undefined;
+ let fileHoverChip: Element | null = null;
+
+ function showFilePreview(target: EventTarget | null) {
+ const chip =
+ (target as HTMLElement | null)?.closest?.("[data-file-path]") ?? null;
+ if (chip === fileHoverChip) return;
+ hideFilePreview();
+ if (!chip) return;
+ fileHoverChip = chip;
+ const path = chip.getAttribute("data-file-path");
+ fileHoverTimeout = setTimeout(() => {
+ if (!path) return;
+ const rect = chip.getBoundingClientRect();
+ refPreviewX = rect.left + rect.width / 2;
+ refPreviewBelow = rect.top < window.innerHeight / 2;
+ refPreviewY = refPreviewBelow ? rect.bottom + 8 : rect.top - 8;
+ hoveredFile = path;
+ }, 300);
+ }
+
+ function hideFilePreview() {
+ clearTimeout(fileHoverTimeout);
+ fileHoverTimeout = undefined;
+ fileHoverChip = null;
+ hoveredFile = null;
+ }
+
+ function showChipPreview(target: EventTarget | null) {
+ showRefPreview(target);
+ showFilePreview(target);
+ }
+
+ function hideChipPreviews() {
+ hideRefPreview();
+ hideFilePreview();
+ }
+
let stashData = $derived(extractTagsAndColors(item.content));
let stashTags = $derived(() => stashData.tags);
let stashColors = $derived(() => stashData.colors);
@@ -757,10 +789,10 @@
ondblclick={handleDoubleClick}
onclick={handleContentClick}
onkeydown={handleContentKeydown}
- onmouseover={(e) => showRefPreview(e.target)}
- onmouseleave={hideRefPreview}
- onfocusin={(e) => showRefPreview(e.target)}
- onfocusout={hideRefPreview}
+ onmouseover={(e) => showChipPreview(e.target)}
+ onmouseleave={hideChipPreviews}
+ onfocusin={(e) => showChipPreview(e.target)}
+ onfocusout={hideChipPreviews}
role="presentation"
>
{@html renderedContent}
@@ -1013,6 +1045,16 @@
+
+
{
+ return await invoke('preview_context_file', { contextId, path });
+ }
+
async listContextFiles(contextId: string, refresh: boolean): Promise {
return await invoke('list_context_files', { contextId, refresh });
}
diff --git a/src/lib/stores/context-folders.svelte.ts b/src/lib/stores/context-folders.svelte.ts
index 2ebeee8..954c568 100644
--- a/src/lib/stores/context-folders.svelte.ts
+++ b/src/lib/stores/context-folders.svelte.ts
@@ -19,7 +19,7 @@
*/
import { DesktopStorageAdapter } from "$lib/services/desktop-adapter";
-import type { ContextFolder } from "$lib/types";
+import type { ContextFolder, FilePreviewData } from "$lib/types";
import { log } from "$lib/utils/log";
import { makeFileRefResolver, type FileRefResolver } from "$lib/utils/file-refs";
@@ -78,6 +78,30 @@ export function getContextFiles(contextId: string | undefined): string[] | undef
return files[contextId];
}
+// Previews already fetched, by context and path. Dropped with the context's file list, so a
+// refresh, relink or unlink never shows a file as it was before.
+const peeks = new Map>();
+
+function forgetPeeks(contextId?: string) {
+ if (!contextId) return peeks.clear();
+ for (const key of peeks.keys()) {
+ if (key.startsWith(`${contextId}\n`)) peeks.delete(key);
+ }
+}
+
+/** The preview of a file in the context's linked folder, fetched once per file list. */
+export function peekContextFile(contextId: string, path: string): Promise {
+ const key = `${contextId}\n${path}`;
+ let peek = peeks.get(key);
+ if (!peek) {
+ peek = adapter.previewContextFile(contextId, path);
+ // A failure is not kept: the next hover asks again.
+ peek.catch(() => peeks.delete(key));
+ peeks.set(key, peek);
+ }
+ return peek;
+}
+
// One resolver per file list, shared by every card rendering that context.
const resolvers = new WeakMap();
@@ -102,6 +126,7 @@ export async function loadContextFiles(contextId: string, refresh = false): Prom
if (!refresh && files[contextId]) return;
try {
const index = await adapter.listContextFiles(contextId, refresh);
+ forgetPeeks(contextId);
files = { ...files, [contextId]: index.files };
} catch (e) {
log.error("Failed to list the project folder:", e);
@@ -113,6 +138,7 @@ export async function linkContextFolder(contextId: string, title: string): Promi
const folder = await adapter.pickContextFolder(contextId, title);
if (!folder) return false;
folders = { ...folders, [contextId]: folder };
+ forgetPeeks(contextId);
const { [contextId]: _stale, ...rest } = files;
files = rest;
return true;
@@ -120,6 +146,7 @@ export async function linkContextFolder(contextId: string, title: string): Promi
export async function unlinkContextFolder(contextId: string): Promise {
await adapter.unlinkContextFolder(contextId);
+ forgetPeeks(contextId);
const { [contextId]: _folder, ...remainingFolders } = folders;
const { [contextId]: _files, ...remainingFiles } = files;
folders = remainingFolders;
@@ -129,6 +156,7 @@ export async function unlinkContextFolder(contextId: string): Promise {
/** Drop every link on this device. */
export async function clearContextFolders(): Promise {
await adapter.clearContextFolders();
+ forgetPeeks();
folders = {};
files = {};
}
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 6d53b4f..40e63bf 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -248,6 +248,12 @@ export interface IStorageService {
previewContextDigest(contextId: string): Promise;
/** Draft a description of the context's project from its folder. A proposal; nothing is saved. */
suggestContextDescription(contextId: string): Promise;
+ /**
+ * The preview of a file in a context's linked folder, for the hover card on an `@path` -
+ * the same shape an attachment's has. `fileType` is `withheld` for a file named like
+ * one that holds secrets, whose contents are never read.
+ */
+ previewContextFile(contextId: string, path: string): Promise;
/** The files in a context's linked folder; `refresh` walks the folder again. */
listContextFiles(contextId: string, refresh: boolean): Promise;
isWindows10(): Promise;
diff --git a/src/lib/utils/__tests__/markdown.test.ts b/src/lib/utils/__tests__/markdown.test.ts
index c307aeb..04829d3 100644
--- a/src/lib/utils/__tests__/markdown.test.ts
+++ b/src/lib/utils/__tests__/markdown.test.ts
@@ -44,15 +44,34 @@ describe('markdown utilities', () => {
expect(result).toContain('@src/app.ts.');
});
- it('should mark an @ path the linked folder does not hold, with a suggestion', () => {
- const resolveFile = {
- resolve: makeFileRefResolver(['src/app.ts', 'src/lib/moved.ts']),
- missingLabel: 'Not in the project folder',
- };
- const result = safeParse('@src/app.ts and @src/moved.ts', undefined, resolveFile);
- expect(result).toContain('@src/app.ts');
- expect(result).toContain('class="ai-mention file-ref-unresolved"');
- expect(result).toContain('Not in the project folder → src/lib/moved.ts');
+ it('should turn @ paths into hoverable file chips when a folder is linked', () => {
+ const resolve = makeFileRefResolver(['src/app.ts', 'docs/release notes.md']);
+ const result = safeParse(
+ '@src/app.ts and @src/gone.ts and @"docs/release notes.md"',
+ undefined,
+ resolve,
+ );
+ expect(result).toContain(
+ '@src/app.ts',
+ );
+ expect(result).toContain(
+ '',
+ );
+ expect(result).toContain('data-file-path="docs/release notes.md"');
+ // No native tooltip left to compete with the preview card.
+ expect(result).not.toContain('title="file:');
+ });
+
+ it('should keep markup in a path inert in the file chip', () => {
+ const result = safeParse('@a.ts', undefined, makeFileRefResolver([]));
+ // The serializer leaves `<` unescaped inside an attribute value, so look at what
+ // the markup builds rather than at its text: one chip, no element from the path.
+ const template = document.createElement('template');
+ template.innerHTML = result;
+ expect(template.content.querySelector('img')).toBeNull();
+ const chip = template.content.querySelector('[data-file-path]');
+ expect(chip?.dataset.filePath).toBe('a.ts');
+ expect(chip?.textContent).toBe('@a.ts');
});
it('should highlight @ mentions after whitespace', () => {
diff --git a/src/lib/utils/markdown.ts b/src/lib/utils/markdown.ts
index b9c3cbf..4151310 100644
--- a/src/lib/utils/markdown.ts
+++ b/src/lib/utils/markdown.ts
@@ -36,8 +36,6 @@ export type RefResolver = (id: string) => RefDisplay;
let activeRefResolver: RefResolver | null = null;
// The same, for `@path` references to files in the context's linked project folder.
let activeFileResolver: FileRefResolver | null = null;
-// The translated "not in the project folder" text for an unresolved path's title.
-let activeFileMissingLabel = "";
const STASH_HREF = /^stash:([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
@@ -104,19 +102,19 @@ const markedInstance = new Marked(
};
}
},
- // With a linked folder, a path it does not hold is marked, and a file of
- // the same name elsewhere is offered in the title. Without one, a mention
+ // With a linked folder, the mention becomes a file chip the card can show a
+ // preview for, marked when the folder does not hold it. Like a stash chip,
+ // the path rides in `title` because DOMPurify drops data attributes;
+ // `injectFileRefs` moves it after sanitizing. Without a folder, a mention
// renders as it always has.
renderer(token) {
const display = activeFileResolver?.(token.path as string);
- if (!display || display.state === 'resolved') {
+ if (!display) {
return `${escapeHtml(token.text)}`;
}
- const title = display.suggestion
- ? `${activeFileMissingLabel} → ${display.suggestion}`
- : activeFileMissingLabel;
+ const state = display.state === 'resolved' ? '' : ' file-ref-unresolved';
return (
- `` +
+ `` +
`${escapeHtml(token.text)}`
);
}
@@ -397,6 +395,27 @@ function injectRefs(html: string): string {
);
}
+/**
+ * Give the file chips left by the mention renderer their behaviour: the path moves from
+ * `title` (so no native tooltip competes with the preview card) to `data-file-path`, and
+ * the chip becomes focusable so the preview is reachable from the keyboard.
+ *
+ * Only spans that carry the renderer's own class are touched, and the path is read back as
+ * an attribute value, never spliced into markup.
+ */
+function injectFileRefs(html: string): string {
+ if (!html.includes('title="file:')) return html;
+ const template = document.createElement('template');
+ template.innerHTML = html;
+ for (const chip of template.content.querySelectorAll('span.file-ref[title^="file:"]')) {
+ const path = chip.getAttribute('title')!.slice('file:'.length);
+ chip.removeAttribute('title');
+ chip.setAttribute('data-file-path', path);
+ chip.setAttribute('tabindex', '0');
+ }
+ return template.innerHTML;
+}
+
/**
* Parse markdown content and sanitize the output to prevent XSS.
* Use this instead of raw `marked.parse()` + `{@html}`.
@@ -406,6 +425,7 @@ function injectRefs(html: string): string {
* 2. DOMPurify – strips anything unsafe (XSS prevention)
* 3. injectBadges – expands placeholders into fully-styled badge HTML
* 4. injectRefs – makes `stash:` reference chips clickable
+ * 5. injectFileRefs – makes `@path` file chips hoverable
*
* `resolveRef` supplies the live label and state of each referenced stash, and
* `resolveFile` checks `@path`s against the context's linked project folder.
@@ -413,11 +433,10 @@ function injectRefs(html: string): string {
export function safeParse(
content: string,
resolveRef?: RefResolver,
- resolveFile?: { resolve: FileRefResolver; missingLabel: string },
+ resolveFile?: FileRefResolver,
): string {
activeRefResolver = resolveRef ?? null;
- activeFileResolver = resolveFile?.resolve ?? null;
- activeFileMissingLabel = resolveFile?.missingLabel ?? "";
+ activeFileResolver = resolveFile ?? null;
let raw: string;
try {
raw = markedInstance.parse(content) as string;
@@ -426,7 +445,7 @@ export function safeParse(
activeFileResolver = null;
}
const sanitized = sanitizeHtml(raw);
- return injectRefs(injectBadges(sanitized));
+ return injectFileRefs(injectRefs(injectBadges(sanitized)));
}
From be6579507604f03d33d54bc0cc26b008158633fe Mon Sep 17 00:00:00 2001
From: Nico Wiedemann
Date: Sat, 7 Nov 2026 18:09:30 +0100
Subject: [PATCH 5/5] chore: bump version to v1.12.0
Co-Authored-By: Claude Opus 5 (1M context)
---
CHANGELOG.md | 2 ++
package.json | 2 +-
src-tauri/Cargo.lock | 2 +-
src-tauri/Cargo.toml | 2 +-
src-tauri/tauri.conf.json | 2 +-
5 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3136532..6a63976 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,8 @@ popover, not for the person who wrote the commit.
## [Unreleased]
+## [1.12.0] - 2026-11-07
+
### Added
- **Type `@` to reference a file from your project.** Link a context to its project folder in
diff --git a/package.json b/package.json
index 48f20f9..740f6c7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "stashpad",
- "version": "1.11.6",
+ "version": "1.12.0",
"description": "The staging area for your AI context.",
"author": {
"name": "Nico Wiedemann",
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index a6c7a48..72cf123 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -5615,7 +5615,7 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
[[package]]
name = "stashpad"
-version = "1.11.6"
+version = "1.12.0"
dependencies = [
"active-win-pos-rs",
"aes-gcm",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 1a89532..5029522 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "stashpad"
-version = "1.11.6"
+version = "1.12.0"
description = "The staging area for your AI context."
authors = ["Nico Wiedemann "]
repository = "https://github.com/EarMaster/stashpad"
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index f24213b..5254a52 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "stashpad",
- "version": "1.11.6",
+ "version": "1.12.0",
"identifier": "org.stashpad",
"build": {
"frontendDist": "../dist",