feat(coding-agent): added configurable ask timeout/notifications and centralized process execution

- Added configurable ask timeout and notification settings to control ask tool behavior and user notifications.
- Added AskSettings interface with timeout (in seconds, default 30) and notification method properties to settings manager.
- Added ask timeout and notification configuration options to settings UI with values for timeout (off, 15, 30, 60, 120 seconds) and notification methods (auto, bell, osc99, osc9, off).
- Refactored process execution across multiple tools (exec, fetch, grep, read, youtube scraper) to use centralized ptree.execText() API instead of custom implementations.
- Refactored ChildProcess class in ptree to use public readonly properties and Promise.withResolvers() for cleaner exit handling.
This commit is contained in:
can1357
2026-01-28 22:27:07 +01:00
parent c22a1025ef
commit 6db649c9ed
13 changed files with 444 additions and 379 deletions
@@ -65,9 +65,8 @@ export async function executeBash(command: string, options?: BashExecutorOptions
// Wait for process exit
try {
await child.exited;
return {
exitCode: child.exitCode ?? 0,
exitCode: await child.exited,
cancelled: false,
...(await sink.dump()),
};