Skip to content

show individual untracked files in git changes widget#8574

Merged
morgmart merged 1 commit intomainfrom
morganm/show-individual-untracked-files
Apr 16, 2026
Merged

show individual untracked files in git changes widget#8574
morgmart merged 1 commit intomainfrom
morganm/show-individual-untracked-files

Conversation

@morgmart
Copy link
Copy Markdown
Collaborator

@morgmart morgmart commented Apr 16, 2026

Category: fix
User Impact: The git changes widget now lists each untracked file individually instead of collapsing them into directory entries.

Problem: When new untracked files existed inside a directory, git status --porcelain collapsed them into a single directory entry (e.g., ?? src/). This made it impossible to see which specific files were untracked.

Solution: Pass --untracked-files=all to the underlying git status call so every untracked file is enumerated individually. Also fixes the widget header layout so the action button doesn't get squeezed when the title is long.

File changes

ui/goose2/src-tauri/src/commands/git_changes.rs
Added --untracked-files=all flag to the git status --porcelain call so individual untracked files are listed rather than collapsed directories.

ui/goose2/src/features/chat/ui/widgets/Widget.tsx
Added gap-2 to the widget header for consistent spacing and wrapped the action slot in a shrink-0 container to prevent it from being compressed when the title is long.

Reproduction Steps

  1. Open a project that has a directory with multiple new untracked files
  2. Look at the git changes widget in the chat view
  3. Verify each untracked file is listed individually instead of showing a single directory entry
  4. Verify the widget header action button (e.g., "View Diff") doesn't get squeezed when the title text is long

widget padding fix:
image

Pass --untracked-files=all to git status so each untracked file is listed
individually rather than collapsing to directory entries. Also fix widget
header layout to prevent action button overflow.

Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
@morgmart morgmart force-pushed the morganm/show-individual-untracked-files branch from dcf3448 to b3a7c57 Compare April 16, 2026 00:50
@morgmart morgmart added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit 19ce336 Apr 16, 2026
25 checks passed
@morgmart morgmart deleted the morganm/show-individual-untracked-files branch April 16, 2026 01:06
jh-block added a commit to sunilkumarvalmiki/goose that referenced this pull request Apr 16, 2026
…l-placeholder

* origin/main: (64 commits)
  fix: expand tool calls by default when Response Style is Detailed (aaif-goose#8478)
  fix: create logs dir before writing llm request log (aaif-goose#8522)
  fix: enable token usage tracking and configurable stream timeout for Ollama provider (aaif-goose#8493)
  fix tauri-plugin-dialog version constraint to match other plugins (aaif-goose#8542)
  call goose serve from tauri frontend via goose-acp client (aaif-goose#8549)
  failed the script when bundle:default fails and cleanup "alpha"  (aaif-goose#8580)
  pass globally unique conversation identifier as sessionId in databricks api call (aaif-goose#8576)
  fix: use sqlx chrono decode for thread timestamps instead of manual parsing (aaif-goose#8575)
  docs: remove stale gemini-acp references (aaif-goose#8572)
  show individual untracked files in git changes widget (aaif-goose#8574)
  fix: update publishing flow to include new sdk dir (aaif-goose#8573)
  fix: remove double border on content in chat (aaif-goose#8545)
  chore(goose2): `just goose2 <command>` with the addition of `just goose2 kill` (aaif-goose#8570)
  Lifei/oltp data (aaif-goose#8458)
  Sidebar polish: search copy, dividers, project reorder, fix DnD (aaif-goose#8568)
  remove the workflow_dispatch check (aaif-goose#8563)
  fix: one more rename (aaif-goose#8562)
  fix(desktop): accept self-signed certs from configured external goosed host (aaif-goose#8400)
  alexhancock/npm-bumps (aaif-goose#8557)
  Remove npm publish from release for now (aaif-goose#8558)
  ...
michaelneale added a commit that referenced this pull request Apr 17, 2026
* main: (37 commits)
  polish: refine sidebar activity indicators, add placeholder token, and tidy search field (#8606)
  feat: add /edit command to cli for on-demand prompt editing (#8566)
  docs(mcp): add Rendex MCP Server extension tutorial (#8541)
  Lifei/delete tauri backend acp (#8582)
  chore: set goose binaries as executable in package.json (#8589)
  feat: add Novita AI as declarative provider (#8432)
  feat: add Kimi Code provider with OAuth device flow authentication (#8466)
  fix: chat loading-state model placeholder (#8431)
  fix: expand tool calls by default when Response Style is Detailed (#8478)
  fix: create logs dir before writing llm request log (#8522)
  fix: enable token usage tracking and configurable stream timeout for Ollama provider (#8493)
  fix tauri-plugin-dialog version constraint to match other plugins (#8542)
  call goose serve from tauri frontend via goose-acp client (#8549)
  failed the script when bundle:default fails and cleanup "alpha"  (#8580)
  pass globally unique conversation identifier as sessionId in databricks api call (#8576)
  fix: use sqlx chrono decode for thread timestamps instead of manual parsing (#8575)
  docs: remove stale gemini-acp references (#8572)
  show individual untracked files in git changes widget (#8574)
  fix: update publishing flow to include new sdk dir (#8573)
  fix: remove double border on content in chat (#8545)
  ...
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