- Add intelligent-router.sh hook for automatic agent routing - Add AUTO-TRIGGER-SUMMARY.md documentation - Add FINAL-INTEGRATION-SUMMARY.md documentation - Complete Prometheus integration (6 commands + 4 tools) - Complete Dexto integration (12 commands + 5 tools) - Enhanced Ralph with access to all agents - Fix /clawd command (removed disable-model-invocation) - Update hooks.json to v5 with intelligent routing - 291 total skills now available - All 21 commands with automatic routing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { useEffect } from 'react';
|
|
|
|
export function SpeechReset() {
|
|
useEffect(() => {
|
|
const cancel = () => {
|
|
try {
|
|
if (typeof window !== 'undefined' && 'speechSynthesis' in window) {
|
|
window.speechSynthesis.cancel();
|
|
}
|
|
} catch {}
|
|
};
|
|
|
|
// Cancel any lingering speech on mount (e.g., after a refresh)
|
|
cancel();
|
|
|
|
// Cancel on page hide/unload as well
|
|
const onVisibilityChange = () => {
|
|
if (document.visibilityState === 'hidden') cancel();
|
|
};
|
|
|
|
window.addEventListener('pagehide', cancel);
|
|
window.addEventListener('beforeunload', cancel);
|
|
document.addEventListener('visibilitychange', onVisibilityChange);
|
|
|
|
return () => {
|
|
window.removeEventListener('pagehide', cancel);
|
|
window.removeEventListener('beforeunload', cancel);
|
|
document.removeEventListener('visibilitychange', onVisibilityChange);
|
|
};
|
|
}, []);
|
|
|
|
return null;
|
|
}
|