Skip to content

feat(composer): reference other projects as folders - #44864

Merged
maria-rcks merged 1 commit into
mainfrom
t3/xfb-feat-reference-outside-workspace
Dec 2, 2026
Merged

maria-rcks merged 1 commit into
mainfrom
t3/xfb-feat-reference-outside-workspace

Conversation

@maria-rcks

@maria-rcks maria-rcks commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

before: @shared only finds workspace files
after: the external project appears above those same files with its absolute folder path
select, remove and send another project's folder reference

thread mentions and attaching files from outside the workspace already exist. the missing piece was finding another project by name in the composer. both web/desktop and mobile now offer up to five matching projects on the thread's machine and insert the existing folder link. archived projects, scratch projects and projects on other machines stay out. this references the folder without changing the thread's workspace or granting file access. machine-qualified project identities and searching files across projects remain separate follow-ups.

boat verified the same stored replay thread before (9e9099e6b9fe) and after (7080146d0f5), in both themes: project lookup, keyboard and pointer selection, chip deletion, ordinary file lookup, sending the absolute path containing a space, and a replay response; the changed picker also passed at 390px (level 4). blacksmith vp run check:changed 9e9099e6b9fe876154fce303ac6867cb2ba26cf6 passed formatting, lint, knip, seven package typechecks, 19 focused tests and affected react compiler checks (level 3). no wire fields or new UI strings.

reported at https://x.com/niksy/status/2126604009515491745; related project-identity request: #34462.

council round 1 on 7080146d0f5: two independent gpt-6.1-sol reviews scored 9/10 with no code findings. gemini neon hit its individual quota and was replaced under the standing fallback rule. github ci completed successfully; no open review threads.

Not verified: native mobile interaction and evidence, because the device tool returned "No device host eas. Known hosts: This machine (local)." desktop shell, real-model file reads and relay/tunnel connections were not exercised. this stays draft for native verification.

gpt-6.1-sol, codex harness in t3 code.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 28, 2026
@maria-rcks
maria-rcks marked this pull request as ready for review November 28, 2026 20:06
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The composer path-trigger menus on mobile and web now suggest matching project directories. The matcher filters projects by environment, archive and scratch status, and title or workspace-root text. Documentation describes how project references work.

Changes: Project Path Suggestions

Layer / File(s) Summary
Project matching and validation
packages/client-runtime/src/composerThreadItems.ts, packages/client-runtime/src/composerThreadItems.test.ts
A new matcher returns up to five matching project paths for the requested environment. Tests cover filtering, case and whitespace handling, and empty or unmatched queries.
Composer menu integration
apps/mobile/src/features/threads/ThreadComposer.tsx, apps/mobile/src/features/threads/use-composer-command-menu.ts, apps/web/src/components/chat/useComposerMenuItems.ts, docs/user/composer.md
Mobile and web path-trigger menus now include project matches. The documentation describes project path references and states that they do not change the thread workspace or file-access permissions.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant MobileComposer
  participant WebComposerMenu
  participant useProjects
  participant matchComposerProjectItems
  MobileComposer->>useProjects: Load project collection
  useProjects-->>MobileComposer: Return projects
  WebComposerMenu->>useProjects: Load project collection
  useProjects-->>WebComposerMenu: Return projects
  MobileComposer->>matchComposerProjectItems: Match projects for query and environment
  WebComposerMenu->>matchComposerProjectItems: Match projects for query and environment
  matchComposerProjectItems-->>MobileComposer: Return matching path items
  matchComposerProjectItems-->>WebComposerMenu: Return matching path items
Loading

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 70801

Typing @ plus a project name in the composer now suggests up to five matching projects on the thread's machine and inserts the folder link, with no workspace or access change. The inspected source shows no defects in this path. Native mobile verification is still pending, which the author has already noted.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(composer): reference other projects as folders" matches the main change: the composer now finds other projects by name and inserts their existing folder links. It is a conventional com…
Description check Passed The description covers the problem (no way to find another project by name in the composer), the change (up to five matching projects inserted as existing folder links on web, desktop, and mobile), ve…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(composer): reference other projects as folders" matches the main change: the composer now finds other projects by name and inserts their existing folder links. It is a conventional commit title in plain language, and it names the scope (composer) and the behavior.

Full details: Description check

Explanation

The description covers the problem (no way to find another project by name in the composer), the change (up to five matching projects inserted as existing folder links on web, desktop, and mobile), verification (focused tests, check:changed run, manual replay checks with results, and what was not verified), and a conventional commit-style context. The Scope section, however, does not follow the template. It says the project accepts bug fixes, not features, and this PR adds a feature. It also does not link an issue that shows a bug, and it does not explain a maintainer request. The Problem section is also framed as a missing feature rather than a bug. The description also includes a PR-only status line about being a draft, and the template asks for a model and harness line, which the author provided. Overall the description is mostly complete, but the Scope section conflicts with the repository policy and the template asks for a justification that is missing.

Resolution

Consider revising the Scope section. The template says the project accepts bug fixes, not features. This PR adds a feature, so the author should state why it fits the scope. The author can also link a maintainer request if one exists. The Problem section should state the expected behavior more clearly, because it currently describes a missing feature rather than a bug. Keep the Verification and model/harness details as they are.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2547fb2 and 7080146.

Files selected for processing: 6

  • apps/mobile/src/features/threads/ThreadComposer.tsx
  • apps/mobile/src/features/threads/use-composer-command-menu.ts
  • apps/web/src/components/chat/useComposerMenuItems.ts
  • docs/user/composer.md
  • packages/client-runtime/src/composerThreadItems.test.ts
  • packages/client-runtime/src/composerThreadItems.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@maria-rcks
maria-rcks merged commit d089b47 into main Dec 2, 2026
45 checks passed
@maria-rcks
maria-rcks deleted the t3/xfb-feat-reference-outside-workspace branch December 2, 2026 01:30
imetn added a commit to imetn/t4code that referenced this pull request Dec 2, 2026
Ported 13 cross-layer upstream commits: pingdotgg#45961, pingdotgg#46662, pingdotgg#46705, pingdotgg#46756, pingdotgg#46750, pingdotgg#46778, pingdotgg#46840, pingdotgg#46844, pingdotgg#46891, pingdotgg#46932, pingdotgg#47015, pingdotgg#47089, pingdotgg#44864. (pingdotgg#46704 confirmed already solved with superior T4 implementation in 0a32ef3.) Preserved all locked T4 customizations including Lock pingdotgg#18 mentionMenu gating, Lock pingdotgg#21 Tiptap editor, and Task Board /board split-view fork guard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant