Skip to content

Conversation

@matthewdiamant
Copy link
Contributor

This fixes: #1507

Right now, error messages from loading extensions are displayed in a toast with full stack trace.
This stack trace can be very large, and quickly goes off-screen inside the toast and you can only read a small portion of it.
You also cannot copy the error message in the toast, as clicking on the toast dismisses the toast.

This PR removes the stack trace from the toast, and adds a button in the toast that allows people to copy the error message to the clipboard.

We can update the styling for this button or behavior in any way we'd like.

Old

image

New

image

@matthewdiamant matthewdiamant force-pushed the mdiamant/copy-error-message-button branch from 48dfe95 to daa6aa3 Compare March 12, 2025 23:09
@angiejones angiejones changed the title Copy error message button in toast feat: Copy error message button in toast Mar 13, 2025
@delkc
Copy link

delkc commented Mar 13, 2025

Chiming in here from a content perspective. What's the main action after they copy the file path? If possible, it would be great if we can add some explanation of what to do about this.

Or is the most common case to just try again (which seems to have worked for me when I get this?), and then the copy action is a supplemental one if you need to debug?

@matthewdiamant
Copy link
Contributor Author

@delkc There's more than just a file path in there, there's an entire gigantic stack trace!
image

I think it's a good idea to include "Try again." (even though the error above still wouldn't work if you tried again, for example).
We've gotten feedback that you currently can't at least copy the error message to debug, so this at least fixes that and looks a bit better. And you currently 90% of that stack trace is off-screen :(
The ideal error message would be something like "Error adding Git extension: *Reason* *Advice*".

@lily-de lily-de merged commit c324486 into main Mar 13, 2025
6 checks passed
@lily-de lily-de deleted the mdiamant/copy-error-message-button branch March 13, 2025 19:43
michaelneale added a commit that referenced this pull request Mar 14, 2025
* main: (32 commits)
  ui: load builtins (#1679)
  chore(release): release version 1.0.14 (#1676)
  Revert "feat: handling larger more complex PDF docs (and fix) (#1663)" (#1675)
  fix: uvshim default to existing uv configuration (#1670)
  fix: handle interruptions during tool responses (#1651)
  feat: Copy error message button in toast (#1658)
  feat: handling larger more complex PDF docs (and fix) (#1663)
  Add Filesystem Tutorial (#1666)
  docs: figma blog post (#1647)
  docs: updating goose modes doc (#1665)
  docs: Add running tasks guide (#1626)
  docs: Add experimental features (#1644)
  feat(cli): add better error message, support stdin via -i - or just no args (#1660)
  feat: extensions read config (#1637)
  fix: trigger words for memory (#1654)
  fix: cleanup keyboard shortcut indication (#1642)
  Extensions load in background and show pending state (#1657)
  Extension error toast stays until dismissed, and error message cleanup (#1653)
  fix: remove other category in settings (#1641)
  fix: restore image outputs from tool calls (#1640)
  ...
kalvinnchau added a commit that referenced this pull request Mar 14, 2025
* origin/main: (29 commits)
  ui: reorganize extensions settings (#1702)
  feat: google_drive write tools and read comment tool (#1650)
  fix: developer builtin name (#1699)
  chore: update extensions section to work with new endpoints (#1696)
  chore: move things around (#1662)
  ui: extensions state updates (#1674)
  docs: goose ollama blog, updated (#1691)
  ui: load builtins (#1679)
  chore(release): release version 1.0.14 (#1676)
  Revert "feat: handling larger more complex PDF docs (and fix) (#1663)" (#1675)
  fix: uvshim default to existing uv configuration (#1670)
  fix: handle interruptions during tool responses (#1651)
  feat: Copy error message button in toast (#1658)
  feat: handling larger more complex PDF docs (and fix) (#1663)
  Add Filesystem Tutorial (#1666)
  docs: figma blog post (#1647)
  docs: updating goose modes doc (#1665)
  docs: Add running tasks guide (#1626)
  docs: Add experimental features (#1644)
  feat(cli): add better error message, support stdin via -i - or just no args (#1660)
  ...
laanak08 added a commit that referenced this pull request Mar 16, 2025
* main: (31 commits)
  feat: add default metrics for core evals (#1602)
  feat(google_drive): use oauth2 crate for PKCE support, make token storage generic over Serializable (#1645)
  ui: reorganize extensions settings (#1702)
  feat: google_drive write tools and read comment tool (#1650)
  fix: developer builtin name (#1699)
  chore: update extensions section to work with new endpoints (#1696)
  chore: move things around (#1662)
  ui: extensions state updates (#1674)
  docs: goose ollama blog, updated (#1691)
  ui: load builtins (#1679)
  chore(release): release version 1.0.14 (#1676)
  Revert "feat: handling larger more complex PDF docs (and fix) (#1663)" (#1675)
  fix: uvshim default to existing uv configuration (#1670)
  fix: handle interruptions during tool responses (#1651)
  feat: Copy error message button in toast (#1658)
  feat: handling larger more complex PDF docs (and fix) (#1663)
  Add Filesystem Tutorial (#1666)
  docs: figma blog post (#1647)
  docs: updating goose modes doc (#1665)
  docs: Add running tasks guide (#1626)
  ...
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
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.

Error message is ephemeral and not useful

4 participants