added sidebar contextual information for firefox#5433
Conversation
Signed-off-by: 40u5 <meswag74@gmail.com>
6c2a371 to
67d01b0
Compare
|
Thank you for the contribution. Requested review from the dev team to help! |
crates/goose-cli/static/script.js
Outdated
There was a problem hiding this comment.
no, accidentally added that to the commit
| } | ||
|
|
||
| // Populate query parameter if present | ||
| getQueryParam(); |
There was a problem hiding this comment.
so this means if you reload the page, we put the query into the box again? is that what you want?
There was a problem hiding this comment.
in my new pr, it removes the q parameter from the URL so that it wouldn't keep adding the text into the box on reload. open webui does something similar where it submits the message when the q= parameter is included.
There was a problem hiding this comment.
Sorry I meant new changes to the current pr
There was a problem hiding this comment.
using the URL class seems cleaner, something like:
function getQueryParam() {
const url = new URL(window.location.href);
const query = url.searchParams.get('q');
if (query) {
messageInput.value = query;
url.searchParams.delete('q');
window.history.replaceState({}, '', url.toString());
}
}
Signed-off-by: 40u5 <meswag74@gmail.com> removed q parameter after search
0d1cc81 to
efd8909
Compare
|
all good. can you remove that thing that got dragged in from the other pr? |
Signed-off-by: 40u5 <meswag74@gmail.com>
f577338 to
f148ede
Compare
|
looks ok now @DOsinga ? |
* origin/main: Update Anthropic and Google Gemini models to latest API versions (#5980) docs: chat recall tutorial (#5975) fix: `final assistant content cannot end with trailing whitespace` error from Anthropic (#5967) 5527 multiple file popups (#5905) Groq configure fix (#5833) added sidebar contextual information for firefox (#5433) docs: council of mine MCP (#5979) docs: nano banana extension (#5977) fix: remove prompt change, read model from config (#5976) Enable recipe deeplink parameters for pre-population (#5757) chore: upgrade npm packages (#5951) feat: ActionRequired (#5897) feat(acp): support loading sessions in acp (#5942) docs: add videos to multi-model page (#5938) docs: promote planning guide (#5934)
* main: fix params not being substituted in activities (#5992) blog: MCP Sampling (#5987) Update Anthropic and Google Gemini models to latest API versions (#5980) docs: chat recall tutorial (#5975) fix: `final assistant content cannot end with trailing whitespace` error from Anthropic (#5967) 5527 multiple file popups (#5905) Groq configure fix (#5833) added sidebar contextual information for firefox (#5433) docs: council of mine MCP (#5979) docs: nano banana extension (#5977) fix: remove prompt change, read model from config (#5976) Enable recipe deeplink parameters for pre-population (#5757)
…nses-streaming * 'main' of github.com:block/goose: blog: MCP Sampling (#5987) Update Anthropic and Google Gemini models to latest API versions (#5980) docs: chat recall tutorial (#5975) fix: `final assistant content cannot end with trailing whitespace` error from Anthropic (#5967) 5527 multiple file popups (#5905) Groq configure fix (#5833) added sidebar contextual information for firefox (#5433) docs: council of mine MCP (#5979) docs: nano banana extension (#5977) fix: remove prompt change, read model from config (#5976) Enable recipe deeplink parameters for pre-population (#5757) chore: upgrade npm packages (#5951) feat: ActionRequired (#5897) feat(acp): support loading sessions in acp (#5942) docs: add videos to multi-model page (#5938)
* 'main' of github.com:block/goose: (21 commits) Hide recipe icon in empty chat (#6022) docs: provider and model config (#6008) Show modal selector after configuring a provider (#6005) docs: additional mcp sampling resources (#6020) Flutter PR Code Review (#6011) feat(mcp): elicitation support (#5965) Onboarding detect provider from api key (#5955) Fix PATH on Windows for extensions (#6000) recipe(datahub): Add a recipe for searching & understanding data in DataHub (#5859) fix params not being substituted in activities (#5992) blog: MCP Sampling (#5987) Update Anthropic and Google Gemini models to latest API versions (#5980) docs: chat recall tutorial (#5975) fix: `final assistant content cannot end with trailing whitespace` error from Anthropic (#5967) 5527 multiple file popups (#5905) Groq configure fix (#5833) added sidebar contextual information for firefox (#5433) docs: council of mine MCP (#5979) docs: nano banana extension (#5977) fix: remove prompt change, read model from config (#5976) ... # Conflicts: # ui/desktop/src/api/sdk.gen.ts # ui/desktop/src/components/bottom_menu/DirSwitcher.tsx
Summary
since firefox's browser sends a parameter with the name of q as the prompt when the summarize with AI button is clicked, I allowed the server to take the q parameter, and when it does it simply adds that prompt to the textarea
Type of Change
Testing
Manual testing
Related Issues
Relates to #5373
Discussion: LINK (if any)
Screenshots/Demos (for UX changes)
Before:
After:
Email: