Skip to content

Fix reset_cache reverting to first prompt after OSC prompt update - #1045

Open
jay23606 wants to merge 2 commits into
daydreamlive:mainfrom
jay23606:pr-go-simple/616
Open

jay23606 wants to merge 2 commits into
daydreamlive:mainfrom
jay23606:pr-go-simple/616

Conversation

@jay23606

@jay23606 jay23606 commented Nov 20, 2026 •

Copy link
Copy Markdown

Fixes #616.

When a graph pipeline node's prompt was changed via OSC (/scope/<node>/prompt), the backend received {node_id, prompt: value}. Pipelines consume prompts, so the stored prompt was never updated. A subsequent reset_cache re-initialised the cache with the original prompt.

Change: src/scope/server/osc_server.py now maps the node-scoped prompt param to prompts: [{text, weight: 100}], matching what the UI sends. Other node-scoped params are unchanged.

Tests: added tests/test_osc_node_prompt.py covering the prompt mapping and a non-prompt passthrough. Not run locally (see tests_not_run).

Caveat: if the prompt port is wired from an upstream node, that node's queued value can still override this on drain. This PR does not address that case.

Tests not run here: uv run pytest tests/test_osc_node_prompt.py - not run locally; dependencies were not installed per instructions, CI should run it, uv run ruff check src/ tests/ and uv run ruff format --check src/ tests/ - not run locally, CI should run them, Manual reproduction with a running Scope instance and OSC client - not run, no GPU/pipeline environment here

Fixes #616

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e04835c5-e00e-423d-a311-3015115056f6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
@jay23606
jay23606 marked this pull request as ready for review November 20, 2026 12:29
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.

reset cache resetting to the FIRST prompt when updating params via osc.

1 participant