Files
synapse/rust
Erik JohnstonandClaude Fable 5 7efa4ce2ac Simplify the logcontext internals
- switch_context dispatched on a stringly-typed method name with a
  catch-all arm that silently meant 'stop'; use a two-variant enum matched
  exhaustively on both the native and Python-dispatch paths (interning the
  method name for the latter).

- none_to_option re-implemented what pyo3's extract::<Option<_>>() does
  natively; use the extract idiom the codebase already uses elsewhere.

- cputime_delta returned PyResult but its body is infallible; return the
  tuple directly and drop the ? plumbing at the call sites.

- registered_sentinel in the Rust tests was a pass-through wrapper around
  sentinel() with a misleading name; call sentinel() directly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFbRtswu7rsHrttJFauUUb
2026-07-16 15:29:01 +00:00
..
2026-07-16 15:29:01 +00:00