Skip to content

Commit

Permalink
fix crash in SpecWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
senko committed Aug 4, 2024
1 parent d679be5 commit 13747e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/agents/spec_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ async def initialize_spec(self) -> AgentResponse:
if len(user_description) < ANALYZE_THRESHOLD and complexity != Complexity.SIMPLE:
initial_spec = await self.analyze_spec(user_description)
reviewed_spec = await self.review_spec(desc=user_description, spec=initial_spec)
else:
initial_spec = reviewed_spec = user_description

self.next_state.specification = self.current_state.specification.clone()
self.next_state.specification.original_description = user_description
Expand Down

0 comments on commit 13747e8

Please sign in to comment.