Skip to content

Simplify control_by_id API: remove view parameter from t_arg#694

Merged
oblomov-dev merged 1 commit into
standardfrom
claude/follow-up-action-view-param-ilgids
Jul 22, 2026
Merged

Simplify control_by_id API: remove view parameter from t_arg#694
oblomov-dev merged 1 commit into
standardfrom
claude/follow-up-action-view-param-ilgids

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Summary

Refactored the control_by_id event API to remove the explicit view parameter from the positional t_arg array. The view now defaults to cs_view-main and can be specified separately via an optional view parameter when needed.

Key Changes

  • API Simplification: Removed the view identifier (second position) from t_arg in all control_by_id follow-up action calls across demo apps 202, 447, 448, 449, and 465

    • Old format: t_arg = VALUE #( ( id ) ( view ) ( method ) ( params... ) )
    • New format: t_arg = VALUE #( ( id ) ( method ) ( params... ) )
  • Explicit View Parameter: Updated demo app 170 to use the new view parameter explicitly when targeting non-main views (e.g., view = client->cs_view-popup)

  • Documentation Updates: Clarified inline comments across all modified files to reflect that:

    • View defaults to cs_view-main
    • View parameter can be omitted for main-view controls
    • t_arg is now positional with id, method, and params only

Implementation Details

  • Demo app 088: Removed MAIN view identifier from navigation control call
  • Demo app 170: Migrated from positional view parameter to explicit view parameter for popup view targeting
  • All other apps: Simplified t_arg arrays by removing empty string ("") or explicit view identifiers
  • Comments updated to document the new API contract

https://claude.ai/code/session_01Ar8FTqFRTaZ9r5jcje9J9n

Drop the positional view slot from control_by_id t_arg in follow_up_action
and _event_client calls; pass the view via the new view parameter where it
is not the main view (app 170: cs_view-popup). Main-view calls simply omit
the slot.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ar8FTqFRTaZ9r5jcje9J9n
@oblomov-dev
oblomov-dev merged commit 7b5f96a into standard Jul 22, 2026
1 of 7 checks passed
@oblomov-dev
oblomov-dev deleted the claude/follow-up-action-view-param-ilgids branch July 22, 2026 00:45
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