Skip to content

deploy (TUI): multi-target pick only persists state + transaction search for the first selected target #1697

Description

@aidandaly24

Summary

Follow-up from #1267 / PR #1659.

When a user multi-selects targets in the TUI deploy picker (e.g. A and C), the deploy is correctly scoped to all selected stacks and both deploy. However the post-deploy bookkeeping in useDeployFlow.ts operates on a single activeTarget (selectedTargets?.[0]), so:

  • Deployed-state is persisted only for the first selected target.
  • CloudWatch Transaction Search is enabled only in the first selected target's account/region.

The other selected targets deploy fine but show up empty in status / invoke and have no transaction search wired.

Current mitigation

PR #1659 adds a warning when more than one target is picked, telling the user that only the first target's state was recorded and to re-run deploy selecting the others. This closes the silent part of the gap but not the underlying single-target bookkeeping.

Proposed fix

Loop the post-deploy bookkeeping over every selected target rather than just activeTarget:

  • persistDeployedState should poll + write deployed-state for each selected target's stack/region.
  • Transaction-search setup should run per selected target account/region.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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