Skip to content

Conversation

@Quantisan
Copy link
Owner

Standardizes async IPC handlers (chat/send-message, workspace/reload) to dispatch registered Nexus actions instead of effects directly, making all async system capabilities discoverable in the action registry. Sync IPC handlers that must return values (topic/save, topic/delete, secrets/*) maintain their direct effect pipeline pattern as documented. Expanded architecture documentation in main/core.cljs to explain when to use each pattern and why the hybrid approach is intentional.

Quantisan and others added 3 commits November 10, 2025 08:02
Phase 1 of IPC async standardization. Chat send-message now dispatches
through a registered action instead of directly dispatching the effect
from the IPC boundary. This makes async chat capabilities discoverable
in the action registry.

- Created main/actions/chat.cljs with send-message-from-ipc action
- Registered action in main/actions.cljs
- Updated IPC handler to dispatch action instead of effect

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Standardizes workspace/reload IPC handler to dispatch through the action registry instead of directly dispatching effects. This makes the reload capability discoverable alongside other workspace actions and follows the established pattern from workspace/pick-folder.

Changes:
- Add reload action to workspace.cljs that extracts workspace-dir from state
- Register workspace.actions/reload in main action registry
- Update IPC handler to dispatch action instead of effect directly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Updated architecture documentation in main/core.cljs to explain both sync and async IPC handler patterns. Sync handlers use direct effect pipelines when returning values; async handlers dispatch through the action registry for discoverability. Added inline comments for each handler group following existing informal style.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@Quantisan Quantisan marked this pull request as ready for review November 9, 2025 23:26
@Quantisan Quantisan merged commit d2723d3 into main Nov 9, 2025
1 check passed
@Quantisan Quantisan deleted the refactor/ipc-handler-consistent-architecture branch November 9, 2025 23:27
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.

2 participants