feat: prefill agent-edit modal, Ctrl+Enter for all modals, improved README #1
Reference in New Issue
Block a user
Delete Branch "feature/prefill-ctrlenter-readme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
1. Prefill agent-edit modal
AgentFormModal now syncs its form fields to the current agent values whenever the modal opens (useEffect on open + agent). Previously, state initialised only on component mount, so reopening after switching between create and edit showed stale or empty values.
2. Ctrl+Enter submits all appropriate modals
Modal gains an optional onSubmit prop. When open, a keydown listener fires onSubmit on Ctrl+Enter (or Cmd+Enter). Wired up in AgentFormModal, DecisionModal, and both Settings modals (disable 2FA, delete account). Textarea newline behaviour is unaffected.
3. Substantially improved README
Expanded to cover: purpose and guarantees, full request lifecycle with state table, capabilities, limits, tech stack, repo layout, Docker Compose quick start, dev setup, testing, before-commit checklist, and all three agent integration paths (OpenClaw, generic MCP, REST).
4. TODO.md
Removed the three corresponding completed items.
Verification