Skip to content

Add build version info to kernel info reply#1333

Merged
jmcphers merged 2 commits into
mainfrom
feature/build-version-in-kernel-info
Jul 15, 2026
Merged

Add build version info to kernel info reply#1333
jmcphers merged 2 commits into
mainfrom
feature/build-version-in-kernel-info

Conversation

@jmcphers

Copy link
Copy Markdown
Contributor

This change adds a couple more Positron-specific fields to the kernel_info_reply, with the goal of making it possible for Positron to know exactly what version of ark it's dealing with, without making additional RPCs.

Needed for posit-dev/positron#14407.

@jmcphers
jmcphers requested review from DavisVaughan and lionel- July 14, 2026 18:08
Comment thread crates/ark/src/shell.rs Outdated
input_prompt: kernel_info.input_prompt.clone(),
continuation_prompt: kernel_info.continuation_prompt.clone(),
build_version: Some(String::from(crate::BUILD_VERSION)),
commit: Some(String::from(env!("BUILD_GIT_HASH"))),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For consistency we might want to do the same for git commit as you did for build version with Davis in #1188

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you're asking for crate::BUILD_GIT_HASH to be a constant alongside crate::BUILD_VERSION, then yea I'd be in favor of that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks, that's a good idea! b3e9c0d

Comment thread crates/ark/src/shell.rs Outdated
input_prompt: kernel_info.input_prompt.clone(),
continuation_prompt: kernel_info.continuation_prompt.clone(),
build_version: Some(String::from(crate::BUILD_VERSION)),
commit: Some(String::from(env!("BUILD_GIT_HASH"))),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you're asking for crate::BUILD_GIT_HASH to be a constant alongside crate::BUILD_VERSION, then yea I'd be in favor of that

@jmcphers
jmcphers merged commit 2d41edc into main Jul 15, 2026
17 checks passed
@jmcphers
jmcphers deleted the feature/build-version-in-kernel-info branch July 15, 2026 16:29
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants