Skip to content

fix(studio): keep fix prompts readable and pointed at a live branch - #180

Merged
yordis merged 3 commits into
mainfrom
yordis/fix-studio-fix-prompts
Oct 19, 2026
Merged

yordis merged 3 commits into
mainfrom
yordis/fix-studio-fix-prompts

Conversation

@yordis

@yordis yordis commented Oct 19, 2026 •

Copy link
Copy Markdown
Member
  • Fix prompts showed field annotations as raw byte arrays, so agents could not read the context they were meant to act on.
  • A fix prompt copied from a URL whose branch was already merged or deleted pointed agents at a branch that no longer exists.

Closes #98
Closes #114


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@cursor

cursor Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Changes are limited to JSON decoding depth in the read-only bridge and client-side branch URL validation with baseline fallback; no auth or mutation paths.

Overview
Fix prompts and API JSON now show readable nested protobuf annotations instead of opaque byte blobs. The studio bridge recursively decodes google.protobuf.Any values inside already-decoded messages (with a depth cap), and exports decodeAnnotations with a regression test for annotations nested in an Any-wrapped schema.

Stale ?branch= URLs are handled in ModelShell: on load it lists branches once; if the URL branch is missing (merged/deleted), it clears the branch to baseline, shows an amber “no longer exists; showing baseline” banner (dismissible), and avoids targeting dead branches in copied prompts. Tests cover fallback, valid branch retention, and a single branch check across re-renders.

Reviewed by Cursor Bugbot for commit ba050fb. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ed4e6c9. Configure here.

Comment thread tsworkspace/webapps/studio/src/components/ModelShell.tsx Outdated
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 41632948-35b2-47d1-a265-c07800ed7e90
📥 Commits

Reviewing files that changed from the base of the PR and between f97cd1a and ba050fb.

📒 Files selected for processing: 4
  • tsworkspace/webapps/studio/server/decode-annotations.test.mjs
  • tsworkspace/webapps/studio/server/index.mjs
  • tsworkspace/webapps/studio/src/components/ModelShell.test.tsx
  • tsworkspace/webapps/studio/src/components/ModelShell.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@yordis
yordis merged commit 7b3b51c into main Oct 19, 2026
27 checks passed
@yordis
yordis deleted the yordis/fix-studio-fix-prompts branch October 19, 2026 14:37
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.

Studio fix prompts keep a branch that was merged or deleted Studio fix prompt shows field annotations as raw byte arrays

1 participant