You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export TaskState and RunState enums from extension module (#34)
* Initial plan
* Add TaskState and RunState enums to extension module
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Format code with cargo fmt
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Use TaskState and RunState enums in extension code
Replace string literals with typed enums throughout the codebase:
- checkpoint.rs: Parse task state and use TaskState::Cancelled
- event.rs: Parse task/run states and use TaskState::Cancelled, RunState::Running
- run.rs: Use TaskState and RunState enums for state management and comparisons
- claim.rs: Use TaskState and RunState enums for state management
State values are read from database as strings, parsed into enums for type-safe
comparisons, and converted back to strings when writing to database.
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Make match patterns exhaustive for run state mapping
Replace catch-all patterns with explicit exhaustive matches that use
unreachable!() for impossible states. This makes the code more explicit
about which states can occur and improves compile-time checking.
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
0 commit comments