Skip to content

App: file tabs and ⌘P file search - #106

Merged
lydakis merged 11 commits into
mainfrom
claude/app-rich-rendering-896e1a
Oct 10, 2026
Merged

lydakis merged 11 commits into
mainfrom
claude/app-rich-rendering-896e1a

Conversation

@lydakis

@lydakis lydakis commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Before: a file an agent linked opened only beside its chat, and nothing searched a project's files.

After: a file beside opens as a tab of its own (⤢ Open as tab), and ⌘P finds any file in the repository in view and opens it in a tab. This is F1 in the shipping plan, after R1 (#81) and H1 (#86).

How: a file tab's key is its path after ▤, which no agent name holds, so tabs, crumbs, saving and restoring treat it like an agent's tab. It has no composer, and the list beside it is Home's. Only the tab in view holds what it read; a tab shown again reads its file again, and a write or edit to it reads it again in place. ⌘P opens the finder on files; Tab inside it trades files and agents and keeps what was typed. A new core command, list_files, runs git ls-files --cached --others --exclude-standard at the top of the repository the folder in view is in. It leaves out tracked files deleted from the folder, and reads git's answer name by name so git stops at 100,000 paths or 16 MiB. The finder lists once per opening and lets the list go on close. A folder outside a repository says so, and a window on a host refuses, as read_file does. Ranking is one pass with no sort: a name that starts with the text, then a name holding it, then a folder. Ctrl-P still puts the next task beside. Unset plan picks: the file tab's list is Home's, and CSV-as-chart from the prototype is left out.

PLAN.md beside, with Open as tab
PLAN.md in a tab
⌘P on files
session.rs in a tab

Cost over 100,000 synthetic paths (Node 22, mock DOM, 4 cores, 2026-10-10):

  • A key costs 5–10 ms when nothing matches and about 20 ms when everything does.
  • The listing's lowercase copy costs about 65–95 ms once per opening.

Deferred review findings (cut-and-merge rule) are logged in #97.

Checks:

  • node --test app/tests/state.test.cjs: 199 of 199. New tests cover the ⌘P ranking, Tab and Enter, the file tab's pane and re-read, Open as tab, the in-place refresh on a write, restore, and ⌘P with no folder.
  • files.rs tested and clippy-clean in a scratch crate on Linux: tracked, new and ignored files from a subfolder, and a folder outside any repository. The app crate itself does not build on Linux, so main.rs is checked only by rustfmt.

🤖 Generated with Claude Code



Generated by Claude Code

A file beside opens as a tab of its own (⤢ Open as tab). ⌘P opens the
finder on the files of the repository in view, listed by git through a new
`list_files` core command; Tab in the finder trades files and agents, and
Enter opens the pick in a tab. Only the file tab in view holds what it
read. Ctrl-P still puts the next task beside.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T06:26:38.659124Z b3afa02 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 0b04921d8c

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/index.html Resolved
Comment thread app/src-tauri/src/files.rs Resolved
list_files reads git's answer name by name and stops it at 100,000 paths
or 16 MiB, and leaves out tracked files deleted from the folder. The
finder lists once per opening (Tab between lists keeps the listing), lets
it go on close, and names the field for what it searches.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: fe2dc83995

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/src-tauri/src/files.rs Resolved
A listing cut at its bound now says so whatever is typed, since narrowing
cannot reach a file past the cut. A byte bound spent just after a name's
end counts as a cut, so git is killed rather than waited on. A file tab,
which has no actions, opens no menu on a right-click.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: 15bdaf8272

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
⌘P pressed in the side pane searches the repository of what that pane
shows, not the main pane's. A submodule, which git lists as one entry but
is a folder, is left out of the list, as is a deleted file. Escape in a
page shown in a file tab gives the keyboard to the tab, as the tab has no
composer to take it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: b9e63c379c

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/ui/app.js Resolved
The listing now asks git for each index entry's mode (--stage) and keeps
only files and symlinks, so a submodule is left out whatever .gitmodules
says; a new folder git names with a trailing slash (another repository
inside) is left out too. The top is named from the folder asked about
(--show-cdup), so a file found through a symlinked folder has the path
the agent's steps write, and its tab refreshes on a write.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: 47923162ca

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
⌘P pressed in the side pane searches the folder of the file shown there
even with no agent beside. A key pressed while the list loads leaves the
first row selected rather than none. A file tab, whose sidebar is Home's
list, shows New project with it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: 32d777fd80

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/src-tauri/src/files.rs Resolved
Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
A folder that is a link into a repository's subfolder cannot name the
top by climbing from its own spelling, so the listing checks that the
climb reaches git's top and uses git's otherwise. The keyboard returning
to the main pane goes to the file tab when one is in view, whether from
a preview's Escape or the finder closing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: 108067d6bb

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/ui/app.js Resolved
Comment thread app/src-tauri/src/files.rs Resolved
A key typed outside a field goes to the composer; a file tab has none,
so there ? opens the keys directly and other keys do nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: bab2f0b1bb

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
A found file's row now carries `data-found`, not the `data-file` a
message link uses, so a click on it no longer also reaches the link
handler and opens a second, wrongly joined copy beside. Its path is
appended to the repository's top as is, so a folder named `~` in the
repository is not taken for the home folder.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01L7djWGZLxGzzTF3RkEShDN

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 954270e22b

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…ring-896e1a

# Conflicts:
#	app/src-tauri/src/main.rs
#	app/tests/state.test.cjs
#	app/ui/app.js
#	docs/APP.md
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

…ring-896e1a

# Conflicts:
#	app/tests/state.test.cjs
#	app/ui/app.js
#	docs/APP.md

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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

Copy link
Copy Markdown

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: b3afa023ab

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/ui/app.js Resolved
Comment thread app/ui/app.js Resolved
@lydakis
lydakis merged commit aaf6d66 into main Oct 10, 2026
1 check passed
@lydakis lydakis mentioned this pull request Oct 11, 2026
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.

2 participants