Skip to content

Match sidebar title search on subdirectories#250

Merged
mattleaverton merged 26 commits intomainfrom
trycycle-title-search-subdir-tabs
Mar 30, 2026
Merged

Match sidebar title search on subdirectories#250
mattleaverton merged 26 commits intomainfrom
trycycle-title-search-subdir-tabs

Conversation

@mattleaverton
Copy link
Copy Markdown
Collaborator

Summary

  • Make sidebar title-tier search match leaf subdirectory names without matching ancestor path segments.
  • Stop pinning open-tab fallback rows during applied search; only matching rows remain visible and they sort normally.
  • Split requested vs applied sidebar search state and separate visible refreshes from replacement requests so drift, queued refreshes, and stale commits preserve the correct visible result set.
  • Preserve debounce timing for follow-up searches even when older search results commit while a newer local query is still pending.

Replaces #240 (which had its base branch set to fix/mcp-param-validation instead of main).

Unrelated test rewrites were separated into #249.

Test Plan

  • All sidebar search unit tests pass (209 tests)
  • Server-side search tests pass (38 tests)
  • Trivial piggybacked changes: test skip removals, selector tightening for side-effect collisions

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Dan Shapiro and others added 26 commits March 27, 2026 17:51
…hints

When called with unrecognized params (e.g. new-tab with url), the MCP
tool now returns an error listing valid parameters. A specific hint
suggests open-browser when url is passed to new-tab. Help text updated
to clarify the distinction between new-tab and open-browser, with a new
playbook for opening URLs.
…ch-subdir-tabs

# Conflicts:
#	test/unit/server/mcp/freshell-tool.test.ts
Restore agent-chat.spec.ts, update-flow.test.ts, and
codex-session-flow.test.ts to their main branch versions. These
test rewrites are unrelated to the sidebar search feature and have
been separated into PR #249.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mattleaverton mattleaverton merged commit b21431f into main Mar 30, 2026
2 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b408c67ec

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +343 to +346
dispatch(commitSessionWindowVisibleRefresh({
...payload,
preserveLoading: preserveLoadingState,
}))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Re-check loading before committing visible refresh

refreshVisibleSessionWindowSilently captures preserveLoadingState once and reuses it for every later commit, so a refresh that started with preserveLoadingState = false can still commit after a new fetchSessionWindow has begun. In that race, canCommit() still succeeds (it only checks visible identity), and this commit clears loading/loadingKind even though the replacement request is still in flight; that hides the active search state and can re-enable pagination/backfill paths that may dispatch append and abort the active search through abortSurface.

Useful? React with 👍 / 👎.

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