GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): hide archive confirmation in settings with new sidebar by ipanasenko · Pull Request #6226 · pingdotgg/t3code

Conversation

@ipanasenko

@ipanasenko ipanasenko commented Aug 11, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

The Archive confirmation preference only controls the legacy sidebar’s inline archive action, but it remains visible and searchable while the default sidebar is active.

image

This renders the preference only when the legacy sidebar is enabled and filters the corresponding Settings search result under the same condition. Focused coverage verifies both visibility states.

Implemented with GPT-5.6-SOL through the T3 Code Codex harness.

Note

Hide archive confirmation setting when new sidebar is enabled

  • The 'Archive confirmation' settings row is now hidden when the legacy sidebar is disabled, matching the new sidebar's behavior.
  • Adds requiresLegacySidebar flag to settingsSearch.ts items and a visibleSettingsSearchItems utility to filter the search catalog based on sidebar state.
  • Settings search in SettingsSidebarNav now passes the filtered catalog to avoid surfacing hidden items.
  • Adds clampSettingsSearchResultIndex to prevent out-of-bounds active index when the result list shrinks after filtering.

Macroscope summarized 9a8cb71.


Note

Low Risk
Settings visibility and search filtering only; archive behavior is unchanged and the stored preference is untouched.

Overview
Archive confirmation only applies to the legacy sidebar’s inline archive control, but the General setting and search entry stayed visible with the default sidebar.

The Archive confirmation row now renders only when legacySidebarEnabled is true. Search uses a requiresLegacySidebar catalog flag and visibleSettingsSearchItems() so that item is omitted from results otherwise. clampSettingsSearchResultIndex keeps keyboard/highlight selection valid when the filtered list is shorter.

Reviewed by Cursor Bugbot for commit 9a8cb71. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ipanasenko
fix(web): hide archive confirmation with new sidebar
0118351
@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dc9fef96-3726-44fd-9be0-5c51e7e10ecf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 11, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 11, 2026
View reviewed changes
Comment thread apps/web/src/components/settings/SettingsSidebarNav.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ipanasenko ipanasenko changed the title fix(web): hide archive confirmation with new sidebar fix(web): hide archive confirmation in settings with new sidebar Aug 11, 2026
@ipanasenko
fix(web): clamp filtered settings search selection
ab04868
@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Aug 11, 2026
@ipanasenko
ipanasenko marked this pull request as ready for review August 11, 2026 21:51
@macroscopeapp

macroscopeapp Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved ab04868

This PR conditionally hides the archive confirmation setting when the new sidebar is enabled. The changes are limited to UI visibility and search filtering, with defensive index clamping and unit tests added. No runtime behavior changes beyond conditional display.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Aug 11, 2026
View reviewed changes
ipanasenko added 2 commits August 14, 2026 14:51
@ipanasenko
Merge branch 'main' into fix/hide-archive-confirmation-setting
9637444
@ipanasenko
Merge branch 'main' into fix/hide-archive-confirmation-setting
9a8cb71
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 15, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

One finding: hiding the archive-confirmation row leaves the behavior it controls active in the default (non-legacy) UI.

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/settings/SettingsPanels.tsx
updateSettings({
confirmThreadArchive: DEFAULT_UNIFIED_SETTINGS.confirmThreadArchive,
})
{settings.legacySidebarEnabled ? (

@macroscopeapp macroscopeapp Bot Aug 15, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

confirmThreadArchive is not legacy-sidebar-only: the default sidebar (Sidebar.tsx:1689 → archive case at :3150) and the chat header thread menu (useThreadActionMenu.ts:86 → :260, used by ChatHeader.tsx) both still gate archive on it. Hiding the row here (and filtering archive-confirmation out of the search index) leaves that confirmation dialog reachable but unconfigurable — a user who turned it on under the legacy sidebar and then switched back is stuck with it, with no row and no search hit to turn it off.

Smallest fix: either keep the row rendered unconditionally (and drop requiresLegacySidebar from the search item), or also scope the runtime behavior — make Sidebar.tsx and useThreadActionMenu ignore confirmThreadArchive when the legacy sidebar is off — so the control and the behavior are hidden together.

If the row does stay conditional, please gate it on the shared useLegacySidebarEnabled() hook rather than raw settings.legacySidebarEnabled; SettingsSidebarNav uses the hook, and its hydration guard exists precisely so this decision has one source of truth.

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
cursor[bot]
cursor Bot reviewed Aug 15, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9a8cb71. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/settings/SettingsPanels.tsx
/>
}
/>
) : null}

@cursor cursor Bot Aug 15, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Hidden archive setting still applies

Medium Severity

Hiding Archive confirmation when the legacy sidebar is off leaves confirmThreadArchive live on the default sidebar. Context-menu archive still shows a confirm dialog when the flag is on, with no remaining control to change it.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9a8cb71. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ipanasenko ipanasenko Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

There's no context menu archive in new sidebar
image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ipanasenko

ipanasenko commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #6526, which restored Archive to the default sidebar and made Archive confirmation relevant there again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ipanasenko ipanasenko closed this Aug 15, 2026
@ipanasenko
ipanasenko deleted the fix/hide-archive-confirmation-setting branch August 15, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes
@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ipanasenko
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.