Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Apr 11, 2025

#2477, broke in #2355


Important

Fixes tab switching behavior in App.tsx for SettingsView to correctly set tab to "chat" on completion.

This description was created by Ellipsis for a195b59. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Apr 11, 2025

⚠️ No Changeset found

Latest commit: a195b59

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 11, 2025
{tab === "history" && <HistoryView onDone={() => switchTab("chat")} />}
{tab === "settings" && (
<SettingsView ref={settingsRef} onDone={() => switchTab("chat")} targetSection={currentSection} />
<SettingsView ref={settingsRef} onDone={() => setTab("chat")} targetSection={currentSection} />
Copy link
Contributor

Choose a reason for hiding this comment

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

The onDone callback for SettingsView now directly calls setTab('chat') instead of using switchTab('chat'). This bypasses the unsaved changes check (settingsRef.current.checkUnsaveChanges) that was previously handled by switchTab. Ensure that this intended change is acceptable for our discard changes behavior.

Suggested change
<SettingsView ref={settingsRef} onDone={() => setTab("chat")} targetSection={currentSection} />
<SettingsView ref={settingsRef} onDone={() => switchTab("chat")} targetSection={currentSection} />

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's the point

@dosubot dosubot bot added the bug Something isn't working label Apr 11, 2025
@mrubens mrubens merged commit 2ba7200 into main Apr 11, 2025
19 checks passed
@mrubens mrubens deleted the fix_settings_discard branch April 11, 2025 03:44
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 11, 2025
@hannesrudolph
Copy link
Collaborator

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants