Skip to content

feat: add AI-aware sidebar with auto-discovery of Claude files#2

Merged
gdilla merged 1 commit intomainfrom
feat/ai-sidebar
Mar 10, 2026
Merged

feat: add AI-aware sidebar with auto-discovery of Claude files#2
gdilla merged 1 commit intomainfrom
feat/ai-sidebar

Conversation

@gdilla
Copy link
Owner

@gdilla gdilla commented Mar 10, 2026

Summary

  • Adds a new AI tab to the sidebar that auto-discovers Claude-related files for the current project
  • Three sections: Instructions (CLAUDE.md/AGENTS.md), Sessions (.jsonl transcripts), Memory files
  • Three new Tauri commands for scanning ~/.claude/projects/ and matching project directories
  • New useAiFilesStore Pinia store with auto-discovery on folder open
  • Tab bar (Files | AI) in sidebar with seamless switching

Test plan

  • 17 new tests (10 store + 7 component), 152 total passing
  • pnpm check passes (typecheck + lint + rust:lint)
  • Manual: open typora-clone folder, switch to AI tab, verify Instructions/Sessions/Memory sections populate
  • Manual: click a CLAUDE.md file → opens in editor
  • Manual: click a .jsonl session → opens as raw text (F1 will add transcript rendering)

🤖 Generated with Claude Code

Add a new "AI" tab to the sidebar that auto-discovers:
- CLAUDE.md and AGENTS.md instruction files in the project tree
- Session transcripts (.jsonl) from ~/.claude/projects/
- Memory files from the matched Claude project directory

Includes three new Tauri commands (find_claude_project_dir,
list_files_with_mtime, find_instruction_files), a Pinia store
(useAiFilesStore), and the AiFilesPanel Vue component.

17 new tests (10 store + 7 component).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gdilla gdilla merged commit b333581 into main Mar 10, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant