feat(health): configurable per-project stall threshold
This commit is contained in:
parent
267087937f
commit
6b420a6a1f
4 changed files with 42 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
|||
import SshTab from './SshTab.svelte';
|
||||
import MemoriesTab from './MemoriesTab.svelte';
|
||||
import { getTerminalTabs } from '../../stores/workspace.svelte';
|
||||
import { getProjectHealth } from '../../stores/health.svelte';
|
||||
import { getProjectHealth, setStallThreshold } from '../../stores/health.svelte';
|
||||
import { fsWatchProject, fsUnwatchProject, onFsWriteDetected, fsWatcherStatus } from '../../adapters/fs-watcher-bridge';
|
||||
import { recordExternalWrite } from '../../stores/conflicts.svelte';
|
||||
import { notify, dismissNotification } from '../../stores/notifications.svelte';
|
||||
|
|
@ -52,6 +52,11 @@
|
|||
terminalExpanded = !terminalExpanded;
|
||||
}
|
||||
|
||||
// Sync per-project stall threshold to health store
|
||||
$effect(() => {
|
||||
setStallThreshold(project.id, project.stallThresholdMin ?? null);
|
||||
});
|
||||
|
||||
// S-1 Phase 2: start filesystem watcher for this project's CWD
|
||||
$effect(() => {
|
||||
const cwd = project.cwd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue