Skip to content

Conversation

@continue
Copy link
Contributor

@continue continue bot commented Dec 22, 2025

Summary

This PR fixes an issue where switching between profiles/organizations didn't properly reflect changes in the UI without manually reloading the application.

Changes

  • Added to the dependencies in the function
  • This ensures the callback properly detects when a profile has changed and triggers the necessary UI updates

Technical Details

The issue was caused by a missing dependency in the hook. When checking if the profile had changed (), the callback was using a potentially stale value of . By adding it to the dependency array, React will recreate the callback when changes, ensuring it always has the most up-to-date value.

Testing

When switching between profiles or organizations, the UI should now immediately reflect the changes without requiring a manual reload.

fixes CON-5093


This agent session was co-authored by nate and Continue.


Summary by cubic

Fixes scope switching so the UI updates immediately when changing profiles or organizations, without a manual reload. Addresses Linear CON-5093 by ensuring the config update callback uses the current selectedProfileId.

  • Bug Fixes
    • Add selectedProfileId to useCallback dependencies in ParallelListeners.handleConfigUpdate to avoid stale profile values and trigger UI updates after scope changes.

Written for commit e3d44fb. Summary will update automatically on new commits.

- Added selectedProfileId to useCallback dependencies in handleConfigUpdate
- This ensures the callback properly detects profile changes and triggers necessary UI updates
- Fixes issue where switching profiles/orgs required manual reload to see changes

fixes CON-5093

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
Co-authored-by: nate <[email protected]>
@continue continue bot requested a review from a team as a code owner December 22, 2025 20:02
@continue continue bot requested review from RomneyDa and removed request for a team December 22, 2025 20:02
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 22, 2025
@github-actions
Copy link

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Ticket analysis

Linked issue: CON-5093: Update scope switching to reflect changes without reload

Status Acceptance criteria Notes
⚠️ When switching between profiles/organizations, the UI immediately reflects changes without requiring a manual reload Only dependency change present; no explicit UI update code or tests
Add selectedProfileId to the useCallback dependencies in ParallelListeners.handleConfigUpdate (fix missing dependency) selectedProfileId was added to the dependency array
Ensure the config-update callback uses the current selectedProfileId to detect profile changes and trigger UI updates Dependency addition ensures callback is recreated with latest selectedProfileId
Provide tests or verification steps that switching profiles/orgs updates the UI immediately No tests or test files were added or modified in the diff
⚠️ No manual reload required after switching scopes (UX requirement) Change likely fixes reload need but no runtime verification included

@continue
Copy link
Contributor Author

continue bot commented Dec 22, 2025

I've reviewed this PR for documentation updates. This is a bug fix that corrects React hook dependencies to ensure the UI properly updates when switching between profiles/organizations. No documentation changes are needed because:

  1. The functionality (profile/organization switching) already exists and is documented
  2. This fixes the implementation to work correctly - it doesn't change the user-facing behavior or add new features
  3. There were no workarounds documented that need to be removed

The existing documentation in docs/mission-control/configs/use-a-config.mdx, docs/cli/quick-start.mdx, and other files already correctly describes how to switch between profiles/organizations.

@continue
Copy link
Contributor Author

continue bot commented Dec 22, 2025

CI Test Failures Analysis

The failing tests on macOS (Node 18 and 20) are not related to this PR. Here's why:

Evidence:

  1. My changes only affect GUI code: This PR only modifies
  2. Failures are in CLI code: The test failures are in
  3. Pre-existing failures: The same "CLI PR Checks" workflow has been failing on the main branch (see runs from Nov 26)
  4. All other checks passed: All 50+ other CI checks passed successfully

Failing Tests:

  • TUIChat - Input Handling > handles typing special characters
  • TUIChat - Slash Commands Tests > filters slash commands when typing /log

These appear to be flaky UI tests in the CLI TUI that are timing-sensitive and fail intermittently on macOS.

Conclusion:

This PR is ready to merge. The GUI functionality change is sound and all relevant checks have passed. The CLI test failures are a separate issue that exists on main.

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

Labels

continue-agent size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant