Skip to content

fix: use _meta instead of meta in newSession request#8796

Merged
lifeizhou-ap merged 1 commit into
mainfrom
sessions-not-going-to-projects
Apr 24, 2026
Merged

fix: use _meta instead of meta in newSession request#8796
lifeizhou-ap merged 1 commit into
mainfrom
sessions-not-going-to-projects

Conversation

@matt2e
Copy link
Copy Markdown
Collaborator

@matt2e matt2e commented Apr 24, 2026

Summary

  • Fixes the metadata field name in the newSession API request from meta to _meta, aligning with the backend's expected field name
  • Removes unnecessary type extension that was widening the request type to include the incorrect meta field
  • This fixes sessions not being associated with projects due to metadata being sent under the wrong key

Test plan

  • Verify that new sessions are correctly associated with projects when a projectId is provided
  • Verify that provider and persona metadata is correctly passed through to the backend

🤖 Generated with Claude Code

The newSession function was sending session metadata (projectId,
providerId, personaId) under the field name "meta" instead of "_meta".
The ACP protocol expects "_meta", so the backend never received this
data, causing sessions to lose their project association after app
restart.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lifeizhou-ap lifeizhou-ap added this pull request to the merge queue Apr 24, 2026
Merged via the queue into main with commit f827af6 Apr 24, 2026
22 of 23 checks passed
@lifeizhou-ap lifeizhou-ap deleted the sessions-not-going-to-projects branch April 24, 2026 10:56
lifeizhou-ap added a commit that referenced this pull request Apr 27, 2026
* main: (29 commits)
  chore(deps): bump winreg from 0.55.0 to 0.56.0 (#8829)
  Fix grammar issue (#8669)
  colorize context window indicator (#8851)
  Refresh canonical model metadata from models.dev (#8838)
  fix(ci): prevent flaky smoke test timeouts from failing the build (#8837)
  updates: release 0.19.0 of the tui/sdk/etc (#8806)
  add a goose2 signed release flow (#8728)
  Port provider tests to typescript (#8237)
  refactor: make ACP server smaller (#8787)
  Add NVIDIA provider, and improve declarative provider UX (#8798)
  fix: removed failed provider test for deprecated providers (#8801)
  fix: only call cleanup when the pr is from same repo (#8799)
  chore: check stale for draft pr (#8803)
  fix: use _meta instead of meta in newSession request (#8796)
  fix: add missing underscore prefix in updateWorkingDir method name (#8743)
  feat: migrate session metadata storage from frontend overlay to backend (#8769)
  Add more info to BUILDING_LINUX (#8789)
  feat(acp): Align to new request patterns of ACP Streamable HTTP/WS transport (#8605)
  Dedupe and organize skills/sources (#8731)
  docs: add skills slash command (#8783)
  ...
Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 30, 2026
- BerriAI/litellm#26843 (merge-after-nits) — invite-link onboarding token hardening

- google-gemini/gemini-cli#26067 (merge-after-nits) — JetBrains alt-buffer respects user setting

- QwenLM/qwen-code#3622 (merge-as-is) — rewind E2E assertion update post isRealUserTurn

- QwenLM/qwen-code#3609 (merge-after-nits) — zero-width-space placeholder unification

- aaif-goose/goose#8796 (merge-as-is) — newSession _meta wire-protocol field rename
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.

2 participants