Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent file from being auto attached in interact mode #2248

Merged
merged 5 commits into from
Mar 7, 2025

Conversation

FadhlanR
Copy link
Contributor

@FadhlanR FadhlanR commented Mar 6, 2025

No description provided.

@FadhlanR FadhlanR requested a review from a team March 6, 2025 13:09
Copy link

github-actions bot commented Mar 6, 2025

Host Test Results

    1 files  ±0      1 suites  ±0   24m 50s ⏱️ +38s
794 tests +1  792 ✔️ +1  2 💤 ±0  0 ±0 
799 runs  +1  797 ✔️ +1  2 💤 ±0  0 ±0 

Results for commit 4b0ac93. ± Comparison against base commit 1e9a06f.

♻️ This comment has been updated with latest results.

@FadhlanR FadhlanR requested a review from IanCal March 6, 2025 13:24
Comment on lines 294 to 297
if (
!this.autoAttachedFileUrl ||
this.operatorModeStateService.state.submode === Submodes.Interact
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put this conditional logic inside the autoAttachedFileUrl getter instead. i.e. have it return undefined unless this.operatorModeStateService.state.submode is code mode

FadhlanR and others added 3 commits March 7, 2025 11:25
Co-authored-by: Luke Melia <[email protected]>
…github.com:cardstack/boxel into cs-8102-do-not-auto-attached-file-in-interact-mode
@FadhlanR FadhlanR requested a review from lukemelia March 7, 2025 04:45
@FadhlanR FadhlanR merged commit f795639 into main Mar 7, 2025
48 checks passed
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