You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Optional State Lens trial for the existing session-reorder test
#178
I read e2e/sidebar-session-reorder.spec.ts, including the test that polls the stored rows and asserts that a single drag changes exactly one session. Would a local report pairing selected stored metadata with sidebar screenshots help when inspecting a failed run?
This is a source-based trial proposal; I have not executed AMC WebUI or measured an integration.
Optional trial
The candidate is the common State Lens v0.3 helper (MIT, one file, existing Node 22+ Playwright). Your declared Node 24–26 range fits that prerequisite.
For the current synthetic reorder fixture, the proposed probe is:
AllModelChatDB → session_metadata → reorder-oldest
Start with the one-record-write test: capture after its current baseline and after its existing post-drop persistence check. Keep readStoredSessions, polling, assertions and any Trace configuration. Additional awaits can affect timing, so keep the original reload-regression run as the baseline; an instrumented run does not establish that a race was fixed.
The helper reads one selected plain-JSON record (explicit undefined supported), up to 64 KiB. Full sessions rows contain Date-valued message timestamps, so this proposal is specifically for the metadata row with messages: []. Unavailable/refused reads remain inconclusive.
If you try it, a short worked / first blocker / no added value over Trace response is enough; no conversation data or report upload is needed.
Existing alternative
Your existing page.evaluate() and {id, sortOrder, isPinned} snapshots may already be sufficient. The proposed value is the local HTML plus screenshots for reviewing a diagnostic run. If that adds no value, keeping the current test is a reasonable outcome.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Workflow
I read e2e/sidebar-session-reorder.spec.ts, including the test that polls the stored rows and asserts that a single drag changes exactly one session. Would a local report pairing selected stored metadata with sidebar screenshots help when inspecting a failed run?
This is a source-based trial proposal; I have not executed AMC WebUI or measured an integration.
Optional trial
The candidate is the common State Lens v0.3 helper (MIT, one file, existing Node 22+ Playwright). Your declared Node 24–26 range fits that prerequisite.
For the current synthetic reorder fixture, the proposed probe is:
AllModelChatDB → session_metadata → reorder-oldest
Start with the one-record-write test: capture after its current baseline and after its existing post-drop persistence check. Keep readStoredSessions, polling, assertions and any Trace configuration. Additional awaits can affect timing, so keep the original reload-regression run as the baseline; an instrumented run does not establish that a race was fixed.
File, scope and setup: https://aichance.github.io/business-ai-recipes/state-lens.html#start
The helper reads one selected plain-JSON record (explicit undefined supported), up to 64 KiB. Full sessions rows contain Date-valued message timestamps, so this proposal is specifically for the metadata row with messages: []. Unavailable/refused reads remain inconclusive.
If you try it, a short worked / first blocker / no added value over Trace response is enough; no conversation data or report upload is needed.
Existing alternative
Your existing page.evaluate() and {id, sortOrder, isPinned} snapshots may already be sufficient. The proposed value is the local HTML plus screenshots for reviewing a diagnostic run. If that adds no value, keeping the current test is a reasonable outcome.
All reactions