Skip to content

Refactor: use session.isResponding to track model state#3

Open
davidiaz1251 wants to merge 1 commit intoPallavAg:mainfrom
davidiaz1251:refactor/use-session-isResponding
Open

Refactor: use session.isResponding to track model state#3
davidiaz1251 wants to merge 1 commit intoPallavAg:mainfrom
davidiaz1251:refactor/use-session-isResponding

Conversation

@davidiaz1251
Copy link
Copy Markdown

What this PR does

Replaces the local @State isResponding with a computed property that references session?.isResponding. This improves consistency by ensuring the UI reflects the actual state of the model session and avoids maintaining redundant state.

Why it matters

Avoids potential desynchronization between the UI state and the model state during streaming or generation.

Let me know if any adjustments are needed — happy to update.

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.

1 participant