The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-5176-0a42fcdbc20732ada9614bc77a0cfedd05cf6074
 has succeeded.
Run started by GitHub user Yicong-Huang (triggered by Yicong-Huang).

Head commit for run:
b228d5186e52a5009ff7de987adf2cf204482f89 / Asish Kumar 
<[email protected]>
fix(agent-service): align auto-layout rank separation (#5176)

### What changes were proposed in this PR?

The agent service and frontend both use dagre for workflow auto-layout,
but the agent service used `ranksep: 100` while the frontend uses
`rankSep: 80`. That made agent-generated layouts wider than layouts
produced by the frontend auto-layout button.

This PR updates the agent-service layout config to `ranksep: 80` and
adds a regression test that pins the produced two-node spacing to the
frontend-equivalent value.

### Any related issues, documentation, discussions?

Closes #4577.

### How was this PR tested?

Installed agent-service dependencies from `bun.lock` in the worktree,
then ran:

```
npm_config_cache=/tmp/texera-npm-cache npx --yes [email protected] test 
src/agent/util/auto-layout.test.ts
```

Result: 7 passed.

```
npm_config_cache=/tmp/texera-npm-cache npx --yes [email protected] run typecheck
```

Result: passed.

```
npm_config_cache=/tmp/texera-npm-cache npx --yes [email protected] run format:check
```

Result: passed.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: OpenAI Codex (GPT-5)

Report URL: https://github.com/apache/texera/actions/runs/26368611018

With regards,
GitHub Actions via GitBox

Reply via email to