Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: preserve pending tags after chip removal (#7136)
[._.]/ Adam Eivy99a7d44d30c6
diff --git a/client/src/components/TagPicker.jsx b/client/src/components/TagPicker.jsxindex d3a7721336..a011d58941 100644--- a/client/src/components/TagPicker.jsx+++ b/client/src/components/TagPicker.jsx@@ -67,6 +67,8 @@ export default function TagPicker({};const removeTag = (label) => {+ // Keep a live focus target so leaving the picker still commits pending text.+ inputRef.current?.focus();const key = canonicalTagKey(label);onChange?.(value.filter((t) => canonicalTagKey(t) !== key));};diff --git a/client/src/components/TagPicker.test.jsx b/client/src/components/TagPicker.test.jsxindex 5b66574d27..51ddd98408 100644--- a/client/src/components/TagPicker.test.jsx+++ b/client/src/components/TagPicker.test.jsx@@ -153,6 +153,18 @@ describe('TagPicker combobox interactions', () => {expect(onChange).toHaveBeenCalledExactlyOnceWith(['Existing', 'Example tag']);});+ it('preserves pending input when removing a focused chip before leaving for Save', async () => {+ const user = userEvent.setup();+ const onChange = vi.fn();+ render(<ControlledPicker value={['Existing']} onChange={onChange} />);+ const input = screen.getByRole('combobox');+ await user.type(input, 'Pending');+ await user.click(screen.getByRole('button', { name: 'Remove tag Existing' }));+ expect(document.activeElement).toBe(input);+ await user.click(screen.getByRole('button', { name: 'Save' }));+ expect(onChange.mock.calls.map(([tags]) => tags)).toEqual([[], ['Pending']]);+ });+it('tabs past suggestions and commits normalized pending input before Save', async () => {listCatalogTags.mockResolvedValue({ items });const user = userEvent.setup();