teknium1
0fdeffe6c4
fix: replace silent exception swallowing with debug logging across tools
Add logger.debug() calls to 27 bare 'except: pass' blocks across 7 core
files, giving visibility into errors that were previously silently
swallowed. This makes it much easier to diagnose user-reported issues
from debug logs.
Files changed:
- tools/terminal_tool.py: 5 catches (stat, termios, fd close, cleanup)
- tools/delegate_tool.py: 7 catches + added logger (spinner, callbacks)
- tools/browser_tool.py: 5 catches (screenshot/recording cleanup, daemon kill)
- tools/code_execution_tool.py: 2 remaining catches (socket, server close)
- gateway/session.py: 2 catches (platform enum parse, temp file cleanup)
- agent/display.py: 2 catches + added logger (JSON parse in failure detect)
- agent/prompt_builder.py: 1 catch (skill description read)
Deliberately kept bare pass for:
- ImportError checks for optional dependencies (terminal_tool.py)
- SystemExit/KeyboardInterrupt handlers
- Spinner _write catch (would spam on every frame when stdout closed)
- process_registry PID-alive check (canonical os.kill(pid,0) pattern)
Extends the pattern from PR #686 (@aydnOktay).
2026-03-10 06:59:20 -07:00
..
2026-03-10 06:34:59 -07:00
2026-03-06 03:37:05 -08:00
2026-03-07 19:33:30 +03:30
2026-03-10 06:59:20 -07:00
2026-03-10 00:49:15 -07:00
2026-02-21 20:22:33 -08:00
2026-03-10 06:59:20 -07:00
2026-03-08 21:00:21 -07:00
2026-02-21 03:53:24 -08:00
2026-03-10 06:59:20 -07:00
2026-03-09 23:18:42 -07:00
2026-03-10 10:18:33 +01:00
2026-02-20 23:23:32 -08:00
2026-03-03 05:16:53 -08:00
2026-02-26 18:07:17 -05:00
2026-03-07 16:56:49 -08:00
2026-02-23 02:11:33 -08:00
2026-03-09 03:37:38 -07:00
2026-02-28 01:33:41 +03:00
2026-02-21 20:22:33 -08:00
2026-02-28 10:38:49 -08:00
2026-02-28 22:58:01 +02:00
2026-03-09 21:09:56 -07:00
2026-03-05 01:44:05 -08:00
2026-03-06 16:47:48 +08:00
2026-03-08 21:00:21 -07:00
2026-03-04 21:25:54 -08:00
2026-03-07 00:49:10 +03:00
2026-03-08 14:23:18 -07:00
2026-03-06 01:40:01 -08:00
2026-03-08 23:53:57 -07:00
2026-03-10 04:32:26 -07:00
2026-03-10 06:59:20 -07:00
2026-02-21 20:22:33 -08:00
2026-03-04 21:35:04 -08:00
2026-03-07 16:53:30 +03:00
2026-03-09 15:27:54 -07:00
2026-03-08 18:06:47 -07:00