Skip to content

Conversation

@jamadeo
Copy link
Collaborator

@jamadeo jamadeo commented Jul 2, 2025

Instead of using /dev/null or flags, make the session file optional on the agent and only try to save when we have one.

Closes #3228

@jamadeo jamadeo changed the title Clean up session files Clean up session file optionality for --no-session Jul 2, 2025
})
.await;
setup_logging(
session.session_file().file_stem().and_then(|s| s.to_str()),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new behavior -- setup_logging takes an Option<&str>, but here we'd pass it /dev/null which becomes a log file like 20250521_154141-null.log.

After this change, we'll pass None, which just becomes 20250521_154141.log

@ahau-square ahau-square merged commit c77c1b3 into main Jul 2, 2025
11 of 12 checks passed
@ahau-square ahau-square deleted the jackamadeo/nullable-session-file branch July 2, 2025 20:05
wpfleger96 added a commit to wpfleger96/goose that referenced this pull request Jul 2, 2025
* main:
  Defend against invalid sessions (block#3229)
  Clean up session file optionality for --no-session (block#3230)
  Feat: Support Recipe Parameters in Goose desktop app (block#3155)
  docs: update recipe example (block#3222)
  Add native OAuth 2.0 authentication support to MCP client (block#3213)
  build: Check in Cargo.lock changes (block#3220)
  fix: fix desktop recipe url generation (block#3209)
  feat: improve UX for saving recipes (block#3214)
baxen added a commit to Developerayo/goose that referenced this pull request Jul 2, 2025
* main: (150 commits)
  Defend against invalid sessions (block#3229)
  Clean up session file optionality for --no-session (block#3230)
  Feat: Support Recipe Parameters in Goose desktop app (block#3155)
  docs: update recipe example (block#3222)
  Add native OAuth 2.0 authentication support to MCP client (block#3213)
  build: Check in Cargo.lock changes (block#3220)
  fix: fix desktop recipe url generation (block#3209)
  feat: improve UX for saving recipes (block#3214)
  fix: Pass Google AI API key in HTTP header, not query param (block#3192)
  docs: add linter to CONTRIBUTING.md (block#3168)
  feat: Structured output for recipes (block#3188)
  Fix cost tracking accuracy and OpenRouter model pricing (block#3189)
  docs: update cli install instructions for windows (block#3205)
  Docs: Cost tracking on the desktop app (block#3204)
  feat: Adding streamable-http transport support for backend, desktop and cli (block#2942)
  fix: use the correct `contains` syntax on create-recipe-pr.yml (block#3193)
  Temporarily Remove GH Copilot Provider  (block#3199)
  docs: fix tab navigation (block#3201)
  feat: use tiktoken-rs instead of tokenizers, single global tokenizer (block#3115)
  add playwright-mcp server to extensions list (block#3010)
  ...
jsibbison-square added a commit that referenced this pull request Jul 2, 2025
…x-turns

* origin/main:
  Defend against invalid sessions (#3229)
  Clean up session file optionality for --no-session (#3230)
  Feat: Support Recipe Parameters in Goose desktop app (#3155)
  docs: update recipe example (#3222)
  Add native OAuth 2.0 authentication support to MCP client (#3213)
  build: Check in Cargo.lock changes (#3220)
  fix: fix desktop recipe url generation (#3209)
  feat: improve UX for saving recipes (#3214)
  fix: Pass Google AI API key in HTTP header, not query param (#3192)
  docs: add linter to CONTRIBUTING.md (#3168)
atarantino pushed a commit to atarantino/goose that referenced this pull request Jul 14, 2025
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 2025
kwsantiago pushed a commit to kwsantiago/goose that referenced this pull request Jul 19, 2025
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.

--no-session argument in CLI are broken

4 participants