Skip to content

model_edit(scope=<subchart>, layout_mode=full) emits "[Autolayout] sf_lint_error: Too many input arguments" yet returns status: ok #45

Description

@Hobart229

Environment

  • Simulink Agentic Toolkit 2026.06 line (observed on the 06.12 autolayout path)
  • MATLAB MCP Server (post-0.10 rename: matlab-mcp-server), MATLAB R2024b, macOS

Repro

  1. A Stateflow chart containing a subchart.
  2. Call the MCP tool model_edit with scope=<the subchart id> and layout_mode='full'.
  3. Observe the console: [Autolayout] sf_lint_error: Too many input arguments.

Observed

The error text is emitted, but the tool returns status: ok, the layout IS applied, the chart structure is intact, and lastwarn is empty afterwards.

Expected

Either no lint error (fix the internal sf_lint call arity for subchart scope), or the error surfaced in the tool result — a printed-but-swallowed error is indistinguishable from a real failure for agent callers that grep the console.

Notes

  • Root/chart scopes do NOT trigger it; only subchart scope on the full-autolayout path.
  • Impact today is cosmetic/noise (the result is correct), but it trains agent callers to ignore sf_lint_error lines.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions