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
FixesAgentOps-AI#9
Add error handling and rollback functionality to the setup wizard.
* Add `rollback_actions` function in `agentstack/cli/cli.py` to undo actions like directory creation and file writing.
* Update `init_project_builder` in `agentstack/cli/cli.py` to catch exceptions and call `rollback_actions`.
* Track created files and directories in `insert_template` for potential rollback in `agentstack/cli/cli.py`.
* Add `rollback_actions` function in `agentstack/generation/agent_generation.py` and `agentstack/generation/task_generation.py` to undo actions.
* Update `generate_agent` in `agentstack/generation/agent_generation.py` and `generate_task` in `agentstack/generation/task_generation.py` to catch exceptions and call `rollback_actions`.
* Add tests in `tests/test_cli_loads.py` to verify rollback functionality.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AgentOps-AI/AgentStack/issues/9?shareId=XXXX-XXXX-XXXX-XXXX).
No description provided.
The text was updated successfully, but these errors were encountered: