Skip to content

The agent that turns websites into APIs!

fix: save auth fail

kalil0321347a38e9fd12
diff --git a/src/reverse_api/opencode_engineer.py b/src/reverse_api/opencode_engineer.py
index 6a2c648..43897c2 100644
--- a/src/reverse_api/opencode_engineer.py
+++ b/src/reverse_api/opencode_engineer.py
@@ -61,7 +61,8 @@ class OpenCodeEngineer(BaseEngineer):
"""Get HTTP Basic Auth object if password is configured."""
if self.opencode_password:
return httpx.BasicAuth(self.opencode_username, self.opencode_password)
- return None
+ self.message_store.save_error("Authentication failed")
+ return None
async def analyze_and_generate(self) -> dict[str, Any] | None:
"""Run the reverse engineering analysis with OpenCode."""