Standardize Session Name Attribute#5085
Conversation
|
let me know when you need a review |
* main: (55 commits) [docs] Add Blog Post: "Designing AI for Users, Not Just LLMs" (aaif-goose#5190) docs: update cognee, jetbrains, mbot extensions config (aaif-goose#5172) Minimally disable subagents when not in autonomous model (aaif-goose#5149) Fix provider sort (aaif-goose#5188) blog: Getting Started with Goose on Windows (aaif-goose#5156) feat: add CI/CD Pipeline recipe (aaif-goose#5183) feat: add Daily Standup Report Generator recipe (aaif-goose#5123) (aaif-goose#5131) Sort providers in alphabetical vs random (aaif-goose#5090) Declarative providers (aaif-goose#5084) adding youtube link to firecrawl mcp tutorial, merge after 9am Eastern Oct 15 (aaif-goose#5173) Ollama integration: modified default model + added models (aaif-goose#5153) Fix codex subagent configuration in documentation (aaif-goose#5180) fix: include apple silicon build of the desktop app in build artifacts (aaif-goose#5174) fixing video embed (aaif-goose#5171) chore: clean up random unused files (aaif-goose#5166) fix: adjust download_cli.sh to tolerate no OS variable (aaif-goose#5169) mcp tutorial page for firecrawl (aaif-goose#5152) Remove orphaned tool calls before compaction (aaif-goose#5059) feat: add copy as markdown button to documentation pages (aaif-goose#5158) chore: include vendored node executable (aaif-goose#5160) ...
* main: Compaction overhaul (aaif-goose#5186) fix: aaif-goose#3960 better approach to input schema for dynamic task params (aaif-goose#5189) used recipe id or deeplink to start agent (aaif-goose#5154)
|
@DOsinga this should be ready for review now! let me know what you think about the |
|
Test failure is unrelated and addressed in #5207 |
* main: Blog: Best Practices for Prompt Engineering with goose (aaif-goose#5204) force WAL sync after session create (aaif-goose#5202) Feat: goose Apify MCP integration docs (aaif-goose#5047) feat: enhance goose to search sessions for easy recall (aaif-goose#5177) Skip hidden & real format (aaif-goose#5194) docs: Hacktoberfest blog submission - Best Practices for Using Goose in Enterprise Environments by Anudhyan Datta. (aaif-goose#5184) docs: prompt injection detection (aaif-goose#5193) Fix mcp large response race condition (aaif-goose#5065)
* main: Revert "feat: enhance goose to search sessions for easy recall (aaif-goose#5177)" (aaif-goose#5209)
|
@DOsinga I think I addressed all your feedback, would you mind giving this another glance over before I merge? |
DOsinga
left a comment
There was a problem hiding this comment.
I think we should revert to making name required when starting a session
2f28716 to
43d9416
Compare
Resolved conflicts in auto-generated API files by regenerating them using the updated @hey-api/openapi-ts v0.85.2 package. The regenerated files properly incorporate both the session naming standardization changes from this branch and the latest updates from main.
|
@DOsinga ok this should be ready for another glance over, per your feedback I reverted back to requiring a name when starting a session |
|
yeah merge when ready! |
* main: Standardize Session Name Attribute (#5085) Docs: Include step-by-step model configuration instructions for first… (#5239) Delete message visibility filter (#5216) delete flaky pricing integration tests (#5207) chore: upgrade most npm packages to latest (#5185) Release/1.11.0 (#5224) Rewrite extension management tools (#5057) fix: re-sync package-lock.json (#5235) docs: Hacktoberfest MCP youtube short entry to community-content.json (#5150) feat: add schedule button to recipe entries (#5217) Autocompact threshold UI cleanup (#5232) fix: correct schema for openai tools (#5229)
This reverts commit b8c3508.
|
it's a good point. we should roll this back and then do it by adding the column name and keep description around for a while |
|
👍 great point, let's roll back and I'll try again next week and be careful to make this more backwards compatible |
|
thank you @wpfleger96 ! |
* origin/main: (66 commits) Revert "Rewrite extension management tools" (#5243) Standardize Session Name Attribute (#5085) Docs: Include step-by-step model configuration instructions for first… (#5239) Delete message visibility filter (#5216) delete flaky pricing integration tests (#5207) chore: upgrade most npm packages to latest (#5185) Release/1.11.0 (#5224) Rewrite extension management tools (#5057) fix: re-sync package-lock.json (#5235) docs: Hacktoberfest MCP youtube short entry to community-content.json (#5150) feat: add schedule button to recipe entries (#5217) Autocompact threshold UI cleanup (#5232) fix: correct schema for openai tools (#5229) Break compaction back into check_ and do_ compaction (#5212) fix: revert built app name to uppercase Goose (#5206) feat: add Code Documentation Generator recipe (#5121) (#5125) Revert "feat: enhance goose to search sessions for easy recall (#5177)" (#5209) Blog: Best Practices for Prompt Engineering with goose (#5204) force WAL sync after session create (#5202) Feat: goose Apify MCP integration docs (#5047) ...
* main: (32 commits) turn off WAL (#5203) Skip subagents for gemini (#5257) Revert "Standardize Session Name Attribute" (#5250) improve provider request logging a bit (#5236) Fix OpenAI empty choices panic (#5248) Revert "Rewrite extension management tools" (#5243) Standardize Session Name Attribute (#5085) Docs: Include step-by-step model configuration instructions for first… (#5239) Delete message visibility filter (#5216) delete flaky pricing integration tests (#5207) chore: upgrade most npm packages to latest (#5185) Release/1.11.0 (#5224) Rewrite extension management tools (#5057) fix: re-sync package-lock.json (#5235) docs: Hacktoberfest MCP youtube short entry to community-content.json (#5150) feat: add schedule button to recipe entries (#5217) Autocompact threshold UI cleanup (#5232) fix: correct schema for openai tools (#5229) Break compaction back into check_ and do_ compaction (#5212) fix: revert built app name to uppercase Goose (#5206) ...
* 'main' of github.com:block/goose: docs: provide more clarity in tagging step of releases (#5269) docs: add GOOSE_DEBUG environment variable (#5265) Lifei/UI parameter input (#5222) turn off WAL (#5203) Skip subagents for gemini (#5257) Revert "Standardize Session Name Attribute" (#5250) improve provider request logging a bit (#5236) Fix OpenAI empty choices panic (#5248) Revert "Rewrite extension management tools" (#5243) Standardize Session Name Attribute (#5085) Docs: Include step-by-step model configuration instructions for first… (#5239) Delete message visibility filter (#5216) delete flaky pricing integration tests (#5207) chore: upgrade most npm packages to latest (#5185) Release/1.11.0 (#5224)
* main: (40 commits) Fix extension manager resource deadlock (#5066) add new prompt for memory extension (#4945) feat: Stable system prompt and tool ordering for more cache hits (#5192) Remove gtag analytics error (#5268) Feat/smart task organizer recipe (#5032) docs: `goose recipe open` command (#5264) docs: provide more clarity in tagging step of releases (#5269) docs: add GOOSE_DEBUG environment variable (#5265) Lifei/UI parameter input (#5222) turn off WAL (#5203) Skip subagents for gemini (#5257) Revert "Standardize Session Name Attribute" (#5250) improve provider request logging a bit (#5236) Fix OpenAI empty choices panic (#5248) Revert "Rewrite extension management tools" (#5243) Standardize Session Name Attribute (#5085) Docs: Include step-by-step model configuration instructions for first… (#5239) Delete message visibility filter (#5216) delete flaky pricing integration tests (#5207) chore: upgrade most npm packages to latest (#5185) ...

Summary
This PR standardizes session attribute naming by migrating from the
descriptionfield tonamethroughout the codebase, with full backwards compatibility support. The change introduces auser_set_nameboolean flag to differentiate between user-provided names and auto-generated names, preventing AI from overwriting custom session names.Key Changes
Backend: Updated
SessionManagerandSessionstruct to usenamefield withuser_set_nameflag. Database schema migration to v3 renames thesessions.descriptioncolumn tosessions.nameand addsuser_set_namecolumn. Serde alias ensures backwards compatibility for JSON deserialization. Themaybe_update_namemethod now respects user-set names.Frontend: Added
sessionCompat.tsutility module providinggetSessionName()helper that gracefully handles both old (description) and new (name) formats. Updated components (SessionHistoryView,SessionItem,SessionListView,SessionsView) to use the compatibility layer. OpenAPI schema and TypeScript types updated to reflect new field names.Database Migration: Includes
goose-db-helper.shscript for safe schema migrations with backup capabilities. Migration tests ensure data integrity during the transition. Database changes are non-destructive with automatic backups before migration.Type of Change
Testing
I added 2 unit tests for this work, and I manually tested with my local Goose
Related Issues
Related to #5044
Screenshots/Demos (for UX changes)
Before:
After: