-
Notifications
You must be signed in to change notification settings - Fork 531
fix issue when tab does not exist in workspace #2580
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ require ( | |
| github.com/spf13/cobra v1.10.1 | ||
| github.com/ubuntu/gowsl v0.0.0-20240906163211-049fd49bd93b | ||
| github.com/wavetermdev/htmltoken v0.2.0 | ||
| github.com/wavetermdev/waveterm/tsunami v0.0.0-00010101000000-000000000000 | ||
| github.com/wavetermdev/waveterm/tsunami v0.12.3 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify tsunami v0.12.3 availability and security status. The dependency has been updated from a pseudo-version to v0.12.3. Please verify that this version exists and is free from known vulnerabilities. Run the following script to check the version and security status: 🏁 Script executed: #!/bin/bash
# Check if the tsunami module version exists and look for security advisories
# Check if the version tag exists in the local tsunami directory (since it's replaced with ./tsunami)
if [ -d "./tsunami" ]; then
cd ./tsunami
echo "=== Checking git tags in ./tsunami ==="
git tag -l "v0.12.3"
echo -e "\n=== Checking current commit in ./tsunami ==="
git log -1 --oneline
cd ..
fi
# Check for Go security advisories related to the module
echo -e "\n=== Checking for security vulnerabilities ==="
go list -m -json github.com/wavetermdev/waveterm/tsunami | jq -r '.Version'Length of output: 265 Length of output: 1034 🌐 Web query: 💡 Result: I couldn't find any public security advisories or CVEs specifically affecting the Tsunami Go module at version v0.12.3. Sources checked: the Tsunami GitHub repo/docs, the Go vulnerability database, and NVD (no tsunami v0.12.3 advisories found). [1][2][3] If you want, I can:
Sources:
Version v0.12.3 declared in go.mod does not exist as a git tag in the local tsunami directory. The dependency uses a replace directive (
No known security vulnerabilities were found for this module. 🤖 Prompt for AI Agents |
||
| golang.org/x/crypto v0.45.0 | ||
| golang.org/x/mod v0.30.0 | ||
| golang.org/x/sync v0.18.0 | ||
|
|
@@ -80,6 +80,7 @@ require ( | |
| github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect | ||
| github.com/mailru/easyjson v0.7.7 // indirect | ||
| github.com/mattn/go-isatty v0.0.20 // indirect | ||
| github.com/outrigdev/goid v0.3.0 // indirect | ||
| github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect | ||
| github.com/rivo/uniseg v0.4.7 // indirect | ||
| github.com/sirupsen/logrus v1.9.3 // indirect | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding early return or UI fallback after initialization failure.
The try-catch correctly logs initialization errors, but the function continues to execute (lines 201-220) even when core objects fail to load. If client, waveWindow, or initialTab are undefined due to loading failures, downstream code (React components, global store access, etc.) may encounter runtime errors.
Consider one of these approaches:
} catch (e) { console.error("Failed initialization error", e); getApi().sendLog("Error in initialization (wave.ts, loading required objects) " + e.message + "\n" + e.stack); + pushFlashError("Failed to initialize Wave Terminal. Please restart the application."); + return; }} catch (e) { console.error("Failed initialization error", e); getApi().sendLog("Error in initialization (wave.ts, loading required objects) " + e.message + "\n" + e.stack); + // Set a flag so App can render an error state + globalStore.set(atoms.initFailure, true); }🤖 Prompt for AI Agents