Safe Mode & Recovery
Astrogram can switch into safe mode when a plugin crashes during a tracked operation such as install, update, load or settings entry.
Main recovery files
tdata/plugins.logtdata/plugins.trace.jsonltdata/plugins.jsontdata/plugins.recovery.jsontdata/plugins.safe-mode
Recovery model
- The plugin manager records the operation that is about to enter risky code.
- If the process crashes before the operation is cleared, recovery state remains on disk.
- On the next launch Astrogram can disable the implicated plugin set and enter safe mode.
- The plugin remains visible in the manager so the user can inspect and remove it.
Best practices for plugin authors
- keep
onLoad()small and deterministic - avoid long blocking work on the UI thread
- prefer host-rendered settings pages over ad-hoc raw dialogs
- log important transitions into
plugins.log - unregister handlers, timers and observers on unload
Best practices for bug reports
Collect:
- client build / commit
- plugin name and version
log.txttdata/plugins.logtdata/plugins.trace.jsonl- whether the crash happened during install, restart or settings open
