Skip to content

Conversation

kujtimiihoxha
Copy link
Member

@kujtimiihoxha kujtimiihoxha commented Aug 6, 2025

Allow staring the llm in the loop without having to stop it.

Screen.Recording.2025-08-08.at.12.42.49.mov

@kujtimiihoxha kujtimiihoxha marked this pull request as ready for review August 8, 2025 10:44
Comment on lines +449 to +461
// If there are queued prompts, process the next one
nextPrompt, ok := a.promptQueue.Take(sessionID)
if ok {
for _, prompt := range nextPrompt {
// Create a new user message for the queued prompt
userMsg, err := a.createUserMessage(ctx, sessionID, prompt, nil)
if err != nil {
return a.err(fmt.Errorf("failed to create user message for queued prompt: %w", err))
}
// Append the new user message to the conversation history
msgHistory = append(msgHistory, userMsg)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

this runs in both branches of the if, maybe move it outside?

@kujtimiihoxha kujtimiihoxha requested a review from caarlos0 August 8, 2025 14:50
@meowgorithm meowgorithm merged commit b550c69 into main Aug 12, 2025
19 checks passed
@meowgorithm meowgorithm deleted the crush-steer branch August 12, 2025 02:39
scalabl3 pushed a commit to metaphori-ai/crush that referenced this pull request Aug 19, 2025
* feat: enable steering the model while in the loop
* feat: show queued messages in the TUI
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.

3 participants