Commit graph

881 commits

Author SHA1 Message Date
RAIT-09
34eec00eac docs: update ACP repository URL in agent-setup overview 2026-04-06 11:11:22 +09:00
RAIT-09
827514f920 docs: update command name in quick-start to match renamed command 2026-04-06 11:08:18 +09:00
RAIT-09
b1ec308b21 Update version to 0.10.0-preview.4 2026-04-05 23:29:39 +09:00
RAIT-09
09d7353db5 style: use Lucide chevron icons for diff collapse/expand toggle 2026-04-05 18:07:41 +09:00
RAIT-09
ead4751fa6 fix: use Lucide chevron icons for collapsible thought toggle 2026-04-05 17:56:16 +09:00
RAIT-09
409db7eb97 fix: use index-based keys in SuggestionPopup to fix stale DOM with duplicate command names
Agents can return multiple commands with the same name (e.g.,
claude-api). Using command.name as React key caused DOM elements
to persist with stale content when the filtered list changed.
2026-04-05 17:51:59 +09:00
RAIT-09
26eba9dcbd Update version to 0.10.0-preview.3 2026-04-05 17:20:06 +09:00
RAIT-09
ab3855149b fix: use platform-specific process tree kill strategy
On Unix, use detached process groups with process.kill(-pid).
On Windows, skip detached (avoids console window) and use
taskkill /T /F for tree kill instead.
2026-04-05 16:43:50 +09:00
RAIT-09
de4275f3bf fix: kill entire process tree on disconnect to prevent orphaned processes (#205)
Spawn agent processes with detached: true to create a process group,
then use process.kill(-pid) to terminate the entire tree on disconnect.
Also add disconnect cleanup to onunload for plugin disable scenarios.
2026-04-05 16:38:38 +09:00
RAIT-09
ae7635835f Update version to 0.10.0-preview.2 2026-04-04 18:55:42 +09:00
RAIT-09
5fd5d13373 style: apply prettier formatting 2026-04-04 18:54:43 +09:00
RAIT-09
33b00af93c Revert "style: apply prettier formatting"
This reverts commit 66564c3a47.
2026-04-04 18:54:23 +09:00
RAIT-09
66564c3a47 style: apply prettier formatting 2026-04-04 18:53:47 +09:00
RAIT-09
7a4696ad4b fix: convert absolute vault paths to relative before opening links (#201)
Clicking markdown links with absolute filesystem paths in agent
responses would create a folder tree in the vault root. Now decodes
URL-encoded paths and strips the vault prefix before passing to
openLinkText. Absolute paths outside the vault are ignored.
2026-04-04 18:50:59 +09:00
RAIT-09
a0f3f7be6f style: apply prettier formatting 2026-04-04 18:20:02 +09:00
RAIT-09
f6842acffb chore: fix lint errors — remove unused destructured cwd and fix misused promise 2026-04-04 18:19:31 +09:00
RAIT-09
56b2d95d99 feat: add "New chat in directory..." to start sessions outside vault (#78)
Separate agentCwd from vaultPath so the agent's working directory
can differ from the vault root. Add ChangeDirectoryModal with text
input and native folder picker (Electron dialog API). Both sidebar
and floating More menus get the new menu item.

Also adds a cwd banner below the header when working outside vault,
and syncs agentCwd on session restore/fork from history.
2026-04-04 18:15:38 +09:00
RAIT-09
b7127a251b refactor: separate agentCwd from vaultPath in ChatPanel
Introduce agentCwd variable to distinguish the agent's working
directory from the vault root path. Currently agentCwd = vaultPath,
but this separation prepares for future features like
"New chat in directory..." where they may differ.
2026-04-04 17:06:40 +09:00
RAIT-09
7bf4869510 feat: add OS system notifications for response completion and permission requests (#181)
Notify users via OS system notifications when the agent finishes
responding or requests permission, so they can switch back from
other apps. Notifications are suppressed while Obsidian is focused.
Enabled by default, configurable in settings under Notifications.
2026-04-04 16:20:48 +09:00
RAIT-09
46c9917e7b refactor: remove activateView from permission and toggle commands
Stop force-opening sidebar when approve/reject permission or
toggle-auto-mention commands are invoked. These now follow the
same event-only pattern as new-chat, cancel, and export commands.
2026-04-04 16:00:18 +09:00
RAIT-09
6d162924b7 refactor!: rename command IDs and unify event patterns
BREAKING CHANGE: Command IDs renamed — users must re-bind hotkeys.

- open-floating-chat → open-floating-chat-view
- open-new-floating-chat → open-new-floating-chat-view
- minimize-floating-chat → minimize-floating-chat-view
- close-floating-chat → close-floating-chat-view
- open-chat-with-{id} → switch-agent-to-{id}

Also unify new-chat-requested event to use targetViewId pattern,
matching all other workspace events. Agent switch commands now
work on the last active view (sidebar or floating) instead of
forcing sidebar activation.
2026-04-04 15:51:02 +09:00
RAIT-09
be302d4f17 feat: add new-chat command for starting a new chat in the active view 2026-04-04 15:43:41 +09:00
RAIT-09
639275805f style: use copy-plus icon for Open new view in sidebar menu
Align with the floating variant's Open new floating chat icon.
2026-04-04 15:11:25 +09:00
RAIT-09
83a4b46891 refactor: consolidate floating header actions into More menu
Move New chat, Session history, Export, Open new floating chat, and
Restart agent from individual header buttons into a single More menu.
The floating header now shows only the agent dropdown, More button,
Minimize, and Close — reducing visual clutter while keeping all
actions accessible.
2026-04-04 15:09:50 +09:00
RAIT-09
bcd67e886c feat: add session title editing from history modal (#147)
Add pencil icon to session history items that opens an EditTitleModal
for renaming sessions. The title is persisted locally via saveSession
with optimistic update and rollback on error. For agent-only sessions,
the original session cwd is preserved (not the current vault path).
2026-04-04 14:36:47 +09:00
RAIT-09
56b1bf4f02 feat: smooth scroll to bottom when user sends a message while scrolled up 2026-04-03 18:09:33 +09:00
RAIT-09
7324c3a039 fix: restore last-used mode/model when loading/resuming a session (#197) 2026-04-03 17:57:13 +09:00
RAIT-09
05248fda6a fix: update custom agent path description to clarify bare command names are supported (#199) 2026-04-03 17:47:14 +09:00
RAIT-09
c60ae310fc docs: update CONTRIBUTING.md architecture section and naming conventions 2026-04-03 17:43:45 +09:00
RAIT-09
210e71700b docs: update ARCHITECTURE.md to reflect current architecture after refactoring 2026-04-03 17:41:36 +09:00
RAIT-09
23b397a94e docs: update AGENTS.md to reflect current architecture after refactoring 2026-04-03 17:37:52 +09:00
RAIT-09
8daa9f292c style: apply prettier formatting 2026-04-03 17:31:55 +09:00
RAIT-09
99aeede3c0 chore: fix lint errors — remove unused variable and unnecessary type assertions 2026-04-03 17:31:23 +09:00
RAIT-09
61a4fb536e chore: remove excessive debug logging from mention-parser, SuggestionPopup, and InputArea 2026-04-03 17:26:38 +09:00
RAIT-09
c0946139ca refactor: remove React dependency from session-state.ts service 2026-04-03 17:20:14 +09:00
RAIT-09
a69bbb9aea perf: use stable empty array constant for availableCommands fallback 2026-04-03 17:04:17 +09:00
RAIT-09
21601dc239 perf: memoize useSessionHistory return and use specific deps in useHistoryModal/ChatPanel 2026-04-03 16:58:22 +09:00
RAIT-09
ebcfb8757f perf: use refs for workspace event handlers to prevent re-registration on every render 2026-04-03 16:46:26 +09:00
RAIT-09
df076fbb63 perf: use specific method ref in handleSessionLoad deps instead of whole agent object 2026-04-03 16:40:09 +09:00
RAIT-09
a509f18f7d perf: use sessionRef pattern in useAgentSession to stabilize callback references 2026-04-03 16:32:18 +09:00
RAIT-09
4f90bb1957 perf: memoize useSuggestions return objects to stabilize mentions/commands references 2026-04-02 23:55:49 +09:00
RAIT-09
bbeafbf768 perf: use specific method refs instead of whole agent object in useChatActions deps 2026-04-02 23:52:51 +09:00
RAIT-09
488f7e17dd perf: memoize useAgent return object to prevent cascading re-renders 2026-04-02 23:20:30 +09:00
RAIT-09
a95b85ee22 refactor: replace window.dispatchEvent with direct callback for floating chat expand/collapse 2026-04-02 21:31:50 +09:00
RAIT-09
b79396905a refactor: compress loadSettings with helpers, remove legacy floatingChatInstances, fix double-save 2026-04-02 21:20:33 +09:00
RAIT-09
c1620f29e1 refactor: extract useInputHistory hook from InputArea component 2026-03-29 23:41:48 +09:00
RAIT-09
a02c8acde1 refactor: extract useObsidianDropdown hook to deduplicate mode/model dropdown setup 2026-03-29 23:28:23 +09:00
RAIT-09
c79f0277ae style: apply prettier formatting to session-storage 2026-03-29 23:20:46 +09:00
RAIT-09
7228b5094d chore: remove unused AgentClientPluginSettings import in settings-normalizer 2026-03-29 23:19:41 +09:00
RAIT-09
f7e6f3edaf fix: set currentSessionId before await in loadSession/resumeSession to prevent replay filtering 2026-03-29 23:18:08 +09:00