Skip to content

Commit ee7b5ff

Browse files
committed
chore: gitignore local agent/editor state dirs; make reopen test portable
1 parent c90c033 commit ee7b5ff

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
/CLAUDE.md
3333
/GEMINI.md
3434

35+
# AI coding-agent per-project state dirs (local settings, agents, session
36+
# caches). Same rationale as .opencode/ above — never source-tracked.
37+
/.claude/
38+
/.kimi-code/
39+
/.cursor/
40+
/.aider*
41+
/.continue/
42+
/.windsurf/
43+
3544
# Long-form project roadmap, kept local-only (not source-tracked).
3645
/PLAN.md
3746

apps/linsync-gui/src/tests.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,9 +1952,15 @@ fn sessions_reopen_restores_multi_tab_workspace() {
19521952

19531953
#[test]
19541954
fn fixture_heuristic_only_matches_linsync_fixture_paths() {
1955-
assert!(path_looks_like_internal_test_fixture(Path::new(
1956-
"/work/repos/visorcraft/linsync/tests/fixtures/text/left.txt"
1957-
)));
1955+
// Use the real workspace fixture path (resolved from CARGO_MANIFEST_DIR)
1956+
// rather than a hardcoded absolute path, so this test is portable.
1957+
let real_fixture = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
1958+
.parent()
1959+
.unwrap()
1960+
.parent()
1961+
.unwrap()
1962+
.join("tests/fixtures/text/left.txt");
1963+
assert!(path_looks_like_internal_test_fixture(&real_fixture));
19581964
assert!(path_looks_like_internal_test_fixture(Path::new(
19591965
"/home/dev/linsync/tests/fixtures"
19601966
)));

0 commit comments

Comments
 (0)