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
Summary
Follow-up from #1267 / PR #1659.
When a user multi-selects targets in the TUI deploy picker (e.g.
AandC), the deploy is correctly scoped to all selected stacks and both deploy. However the post-deploy bookkeeping inuseDeployFlow.tsoperates on a singleactiveTarget(selectedTargets?.[0]), so:The other selected targets deploy fine but show up empty in
status/invokeand 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
deployselecting 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:persistDeployedStateshould poll + write deployed-state for each selected target's stack/region.Notes
awsTargets[0]); not a regression introduced by fix(deploy): scope TUI deploy to the picker-selected targets (#1267) #1659.