feat(mobile): bigger green working dot on tabs; Tab key replaces /clear in the simple keyboard bar

The working dot is the one glance-state a phone needs: busy tabs now get a
9px pulsing dot with a green glow (idle stays 4px). The glow needs !important
because the skin block's no-halo rule outranks mobile.css.

The simple keyboard accessory bar swaps /clear for Tab (/clear and /compact
stay in the extended bar with their double-tap confirm). The tab action now
flushes locally-buffered prompt text to the PTY before sending \t, so
completion applies to what was just typed instead of an empty composer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer
2026-08-09 17:32:24 +02:00
parent 6fc772f697
commit 3533c4332b
4 changed files with 102 additions and 8 deletions
+11 -2
View File
@@ -469,7 +469,9 @@ describe('Virtual Keyboard', () => {
(button) => (button as HTMLElement).dataset.action
);
});
expect(actions).toEqual(['scroll-up', 'scroll-down', 'init', 'clear', 'paste', 'dismiss']);
// Tab replaced /clear in the simple bar; /clear and /compact live in the
// extended bar only.
expect(actions).toEqual(['scroll-up', 'scroll-down', 'init', 'tab', 'paste', 'esc', 'dismiss']);
});
it('double-tap confirm on /clear button', async () => {
@@ -477,9 +479,11 @@ describe('Virtual Keyboard', () => {
await showKeyboard(page, KEYBOARD.TYPICAL_IOS_HEIGHT);
await page.waitForTimeout(WAIT.KEYBOARD_ANIMATION);
// handleAction() early-returns if app.activeSessionId is falsy — mock it
// handleAction() early-returns if app.activeSessionId is falsy — mock it.
// /clear only exists in the extended bar now, so switch modes first.
await page.evaluate(`
if (typeof app !== 'undefined') app.activeSessionId = 'test-session';
KeyboardAccessoryBar.setMode('extended');
`);
// Click via JS since the button is positioned outside the viewport
@@ -503,6 +507,8 @@ describe('Virtual Keyboard', () => {
return btn?.textContent?.trim();
});
expect(text).toBe('Tap again');
await page.evaluate(`KeyboardAccessoryBar.setMode('simple');`);
});
it('double-tap expires after 2s', async () => {
@@ -511,6 +517,7 @@ describe('Virtual Keyboard', () => {
await page.evaluate(`
if (typeof app !== 'undefined') app.activeSessionId = 'test-session';
KeyboardAccessoryBar.setMode('extended');
`);
// First tap on clear via JS
@@ -535,6 +542,8 @@ describe('Virtual Keyboard', () => {
return btn?.classList.contains('confirming') ?? false;
});
expect(afterExpiry).toBe(false);
await page.evaluate(`KeyboardAccessoryBar.setMode('simple');`);
});
it('dismiss button blurs active element', async () => {