fix(control): improve storyline history and graph launch

Append history on revisit instead of truncating, highlight the latest duplicate entry, add Start from this scene to the graph context menu, and keep storyline state isolated from project graph edits.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-02 19:14:01 +08:00
parent 657e3c862e
commit ca0cf9c0ce
6 changed files with 84 additions and 24 deletions
@@ -0,0 +1,18 @@
import assert from 'node:assert/strict';
import fs from 'node:fs';
import path from 'node:path';
import test from 'node:test';
import { fileURLToPath } from 'node:url';
const here = path.dirname(fileURLToPath(import.meta.url));
function readSceneGraph(): string {
return fs.readFileSync(path.join(here, 'SceneGraph.tsx'), 'utf8');
}
void test('SceneGraph: контекстное меню узла — «Запустить с этой сцены»', () => {
const src = readSceneGraph();
assert.ok(src.includes('runFromScene'));
assert.ok(src.includes('onRunFromGraphNode'));
assert.ok(src.includes('onRunFromGraphNode?.(menu.graphNodeId)'));
});