Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #47555: fix(tui): stop fetching placeholder session id on --continue This PR appears to be directly related to the current PR #48421. Both address issues with the You should check if PR #47555 has already been merged or if it needs to be reconciled with the current PR #48421. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Ummm, ok. I literally did exactly what you asked.
|


Summary
Fixes an error where running
opencode --continuefails backend schema validation:Cause
When
--continuewas passed,RouteProviderinpackages/tui/src/app.tsxinitializedinitialRoutewith{ type: "session", sessionID: "dummy" }. Mounting the session view immediately invokedsdk.client.session.get({ sessionID: "dummy" }), which failed schema validation becauseSessionIDrequires strings to start with"ses".Solution
"dummy"session ID frominitialRouteso that--continuewaits forsync.data.sessionto resolve the latest valid session before navigating.input.args.sessionIDtoinitialRoutewhen--sessionis provided without--fork.--continueis used in a repository without any existing sessions.packages/tui/test/app-lifecycle.test.tsxto verify no requests are made to"dummy"session IDs.Fixes #29748