feat(FN-3725): add --accent-text token per theme for chat message readabili

Adds a `--accent-text` CSS token defined per theme for consistent chat text readability, and highlights the fast mode bolt icon in the task detail modal, with corresponding theme-color and rendering tests.

Fusion-Task-Id: FN-3725
This commit is contained in:
Fusion
2026-05-08 00:37:27 -07:00
committed by gsxdsm
parent 5e94151111
commit 42b0cf0416

View File

@@ -698,12 +698,22 @@ const isolatedHomesToCleanup = new Set();
// unconditionally, even if cleanup's rm silently failed.
const knownIsolatedHomeBasenames = new Set();
function cleanupIsolatedHomePath(homePath) {
try {
rmSync(homePath, { recursive: true, force: true });
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
console.warn(`[test-changed] failed to remove isolated HOME ${homePath}: ${message}`);
function cleanupIsolatedHomePath(homePath, retries = 3, delayMs = 200) {
for (let attempt = 0; attempt <= retries; attempt++) {
try {
rmSync(homePath, { recursive: true, force: true });
break;
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
if (attempt < retries) {
// EBUSY on macOS: SQLite WAL still mmap'd or orphan child holding fd.
// Spin briefly to give the OS time to release the handle.
const end = Date.now() + delayMs;
while (Date.now() < end) { /* busy-wait */ }
} else {
console.warn(`[test-changed] failed to remove isolated HOME ${homePath} after ${retries + 1} attempts: ${message}`);
}
}
}
isolatedHomesToCleanup.delete(homePath);
}