Skip to content

Agent stability fixes - #439

Merged
frikky merged 8 commits into
Shuffle:mainfrom
satti-hari-krishna-reddy:cache-fix
Jul 29, 2026
Merged

Agent stability fixes#439
frikky merged 8 commits into
Shuffle:mainfrom
satti-hari-krishna-reddy:cache-fix

Conversation

@satti-hari-krishna-reddy

@satti-hari-krishna-reddy satti-hari-krishna-reddy commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

This PR contain fixes to state-consistency bugs due to cache and premature recovery firing from Fixexecution and agent continuation

@frikky frikky left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright. Just fix the debug thing at the top

Comment thread ai.go Outdated
func HandleAiAgentExecutionStart(execution WorkflowExecution, startNode Action, createNextActions bool, callerName string, aiResponseWrapper ...[]byte) (Action, error) {

if debug {
if callerName == "" {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be useful outside of debug too?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, It's useful

Comment thread ai.go Outdated
callerName = "UNKNOWN_CALLER"
}

log.Printf("[INFO][%s] AI Agent: HandleAiAgentExecutionStart invoked by caller: '%s' (createNextActions=%t, node=%s, status=%s)", execution.ExecutionId, callerName, createNextActions, startNode.ID, execution.Status)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency: If you do debug printing, add actual [DEBUG]

That way it's easy to differentiate if debug is enabled

@satti-hari-krishna-reddy

Copy link
Copy Markdown
Collaborator Author

@frikky This is ready to be merged.

@frikky
frikky merged commit 7250bd6 into Shuffle:main Jul 29, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants