Skip to content

Improve form state verification and split-pane UI awareness#61

Open
DenysKuchma wants to merge 2 commits into
mainfrom
fix/form-state-and-split-pane-awareness
Open

Improve form state verification and split-pane UI awareness#61
DenysKuchma wants to merge 2 commits into
mainfrom
fix/form-state-and-split-pane-awareness

Conversation

@DenysKuchma

Copy link
Copy Markdown
Collaborator

Summary

  • Serialize live form control state into HTML snapshots so filled inputs can be verified from page diffs.
  • Mark elements as covered/offscreen/target using browser hit-testing metadata.
  • Teach researcher output to treat split-pane detail panels as active UI context instead of mixing them with list/toolbar sections.
  • Improve inline create/edit guidance for icon-only confirm controls near edited fields.

@DenysKuchma DenysKuchma requested a review from DavertMik June 30, 2026 14:54

@DavertMik DavertMik left a comment

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.

please simplify code

Comment thread src/ai/tools.ts

const visibilityNote = visible ? 'Element IS visible in browser — Tester can use this XPath as locator.' : 'Element exists in DOM but is NOT visible. May need scrolling, a click to reveal, or is hidden.';

const hit = liveElement?.attrs['data-explorbot-hit'] || null;

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.

can we here do things less ugly
if liveEelement is instance of our webEelement class

Add to liveElemet

const hit = liveElement.ourAttr('hit')

Comment thread src/utils/html.ts
limits: typeof HTML_EXTRACTION_LIMITS;
};

export function captureDomHtmlSnapshot(): string {

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.

we already have like 3 functions for html snapshot:

htmlMinimalUISnapshot
htmlCombinedSnapshot
...

should we add this to thee ones?

Comment thread src/utils/html.ts
return Array.from(tokens).slice(0, 8);
}

function describeTopElement(target: Element): string {

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.

Suggested change
function describeTopElement(target: Element): string {
function describeOverlappingElement(target: Element): string {

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.

2 participants