Skip to content

Conversation

@ariane-emory
Copy link
Contributor

@ariane-emory ariane-emory commented Jan 19, 2026

What does this PR do?

Adds optional { touch: false } parameter to Session.update() to skip automatic timestamp updates. Applied to:

  • Title changes (rename)
  • Archived changes
  • Share/unshare
  • Auto-generated titles

Employing this new parameter in packages/opencode/src/server/routes/session.ts resolves #9494, resulting in sessions not immediately (and perhaps unexpectedly) rising to the top of the session_list when renamed.

How did you verify your code works?

Manual A/B testing

Adds optional { touch: false } parameter to Session.update() to skip
automatic timestamp updates. Applied to:
- Title changes (rename)
- Archived changes
- Share/unshare
- Auto-generated titles
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@ariane-emory ariane-emory marked this pull request as ready for review January 19, 2026 20:08
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.

Updating a session's metadata ought not update the timestamp

1 participant