fix(gtk): prompt enhance timeout + cancel button #155
No reviewers
Labels
No labels
area:agents
area:ai
area:config
area:dashboard
area:design
area:design-review
area:devtools
area:entities
area:gallery
area:generate
area:image
area:infra
area:meta
area:model-browser
area:navigation
area:presets
area:security
area:sessions
area:settings
area:sharing
area:test
area:ux
area:webhook
area:workdir
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/loom!155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/prompt-enhance-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
execute_prompt_enhance— if the AI backend hangs, the job fails with "Prompt enhancement timed out" instead of spinning forever. Also coversEntityEnhancewhich reuses the same function.EnhanceResulthandler: ignore late results that arrive after the user already cancelled, preventing the restored text from being overwritten.Root cause
Three issues combined to create the stuck-spinner bug:
bridge.enhance_prompt()had no timeout — a hung backend meant the future never completedEnhanceResultdidn't check whether enhancement was still active, so late arrivals could overwrite restored textTest plan
cargo build -p loom-gtk🤖 Generated with Claude Code