Add initial branch and initial prompt to Session#1494
Open
gjkim42 wants to merge 1 commit into
Open
Conversation
gjkim42
marked this pull request as ready for review
July 15, 2026 12:58
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
kelos-bot
Bot
force-pushed
the
session-spawner
branch
from
July 18, 2026 11:48
143f1cb to
afc24a7
Compare
kelos-bot
Bot
force-pushed
the
session-spawner
branch
from
July 18, 2026 12:04
afc24a7 to
5dce3c6
Compare
Collaborator
Author
|
/kelos api-review |
Contributor
|
🤖 Kelos Task Status Task |
kelos-bot
Bot
force-pushed
the
session-spawner
branch
from
July 18, 2026 12:15
5dce3c6 to
a8c8fa4
Compare
Contributor
|
🤖 Kelos API Reviewer Agent @gjkim42 API Design ReviewVerdict: REQUEST CHANGES FindingsIdempotency and recovery
Naming and declarative semantics
Documentation
/kelos needs-input |
kelos-bot
Bot
force-pushed
the
session-spawner
branch
from
July 18, 2026 13:24
a8c8fa4 to
aab948b
Compare
kelos-bot
Bot
force-pushed
the
session-spawner
branch
2 times, most recently
from
July 18, 2026 13:58
ba0a13b to
2bea5fe
Compare
kelos-bot
Bot
force-pushed
the
session-spawner
branch
from
July 18, 2026 23:22
2bea5fe to
2e1f2a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds
initialBranchandinitialPromptto the v1alpha2SessionAPI so an interactive Session can initialize from a selected Git branch and automatically begin with a prompt.The controller uses
initialBranchonly during workspace initialization. The runtime readsinitialPromptfrom the immutable Session resource and records and submits it before becoming ready when the workspace has no conversation history. Retained workspace history prevents resubmission after a runtime restart; replacing anemptyDir-backed Pod starts a fresh conversation and submits the prompt again.The web form and YAML API round-trip both fields. Generated CRDs, reference documentation, examples, and tests are updated with the API.
Which issue(s) this PR is related to:
Fixes #1477
Special notes for your reviewer:
Validation completed:
make updatemake testmake verifymake test-integrationDoes this PR introduce a user-facing change?