summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorDidier Durand <[email protected]>2025-07-26 02:20:01 +0200
committerGitHub <[email protected]>2025-07-25 20:20:01 -0400
commit2c924b9fdb255f943467fb70b018253b6ed33edb (patch)
treec8db86aac7f9591c4a04faa8e475ccd1fdf109f4 /packages
parente8eaa77bf1714af985f82faf2cee6950ec3ea0f3 (diff)
downloadopencode-2c924b9fdb255f943467fb70b018253b6ed33edb.tar.gz
opencode-2c924b9fdb255f943467fb70b018253b6ed33edb.zip
fixing various typos in text. (#1185)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/session/prompt/beast.txt4
-rw-r--r--packages/opencode/src/session/prompt/plan.txt2
-rw-r--r--packages/opencode/src/session/prompt/title.txt2
-rw-r--r--packages/tui/input/key_test.go2
-rw-r--r--packages/tui/input/table.go2
-rw-r--r--packages/tui/internal/clipboard/clipboard_windows.go4
-rw-r--r--packages/tui/internal/viewport/viewport.go2
7 files changed, 9 insertions, 9 deletions
diff --git a/packages/opencode/src/session/prompt/beast.txt b/packages/opencode/src/session/prompt/beast.txt
index 473f02864..d89fd6e6a 100644
--- a/packages/opencode/src/session/prompt/beast.txt
+++ b/packages/opencode/src/session/prompt/beast.txt
@@ -29,7 +29,7 @@ You MUST use the ToolRead tool to verify that all steps are complete or cancelle
You are a highly capable and autonomous agent, and you can definitely solve this problem without needing to ask the user for further input.
# Workflow
-1. Fetch any URL's provided by the user using the `webfetch` tool.
+1. Fetch any URL provided by the user using the `webfetch` tool.
2. Understand the problem deeply. Carefully read the issue and think critically about what is required. Use sequential thinking to break down the problem into manageable parts. Consider the following:
- What is the expected behavior?
- What are the edge cases?
@@ -84,7 +84,7 @@ Carefully read the issue and think hard about a plan to solve it before coding.
- When using the edit tool, include 3-5 lines of unchanged code before and after the string you want to replace, to make it unambiguous which part of the file should be edited.
- If a patch or edit is not applied correctly, attempt to reapply it.
- Always validate that your changes build and pass tests after each change.
-- If the build fails or test fail, debug why before proceeding, update the plan as needed.
+- If the build fails or tests fail, debug why before proceeding, update the plan as needed.
## 7. Debugging
- Use the `lsp_diagnostics` tool to check for any problems in the code.
diff --git a/packages/opencode/src/session/prompt/plan.txt b/packages/opencode/src/session/prompt/plan.txt
index fffbfffc0..f0e02d266 100644
--- a/packages/opencode/src/session/prompt/plan.txt
+++ b/packages/opencode/src/session/prompt/plan.txt
@@ -1,3 +1,3 @@
<system-reminder>
-Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supercedes any other instructions you have received (for example, to make edits).
+Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supersedes any other instructions you have received (for example, to make edits).
</system-reminder>
diff --git a/packages/opencode/src/session/prompt/title.txt b/packages/opencode/src/session/prompt/title.txt
index ac82d60ab..6de65d2b7 100644
--- a/packages/opencode/src/session/prompt/title.txt
+++ b/packages/opencode/src/session/prompt/title.txt
@@ -10,7 +10,7 @@ You are generating titles for a coding assistant conversation.
- Max 50 chars, single line
- Focus on the specific action or question
- Keep technical terms, numbers, and filenames exactly as written
-- Preserve HTTP status codes (401, 404, 500, etc) as numbers
+- Preserve HTTP status codes (401, 404, 500, etc.) as numbers
- For file references, include the filename
- Avoid filler words: the, this, my, a, an, properly
- NEVER assume their tech stack or domain
diff --git a/packages/tui/input/key_test.go b/packages/tui/input/key_test.go
index 9bf4d9a51..b09f2f859 100644
--- a/packages/tui/input/key_test.go
+++ b/packages/tui/input/key_test.go
@@ -777,7 +777,7 @@ var seed = flag.Int64("seed", 0, "random seed (0 to autoselect)")
// the seed flag was set.
func genRandomData(logfn func(int64), length int) randTest {
// We'll use a random source. However, we give the user the option
- // to override it to a specific value for reproduceability.
+ // to override it to a specific value for reproducibility.
s := *seed
if s == 0 {
s = time.Now().UnixNano()
diff --git a/packages/tui/input/table.go b/packages/tui/input/table.go
index d2373236b..7e81fde38 100644
--- a/packages/tui/input/table.go
+++ b/packages/tui/input/table.go
@@ -206,7 +206,7 @@ func buildKeysTable(flags int, term string) map[string]Key {
table["\x1bOc"] = Key{Code: KeyRight, Mod: ModCtrl}
table["\x1bOd"] = Key{Code: KeyLeft, Mod: ModCtrl}
//nolint:godox
- // TODO: invistigate if shift-ctrl arrow keys collide with DECCKM keys i.e.
+ // TODO: investigate if shift-ctrl arrow keys collide with DECCKM keys i.e.
// "\x1bOA", "\x1bOB", "\x1bOC", "\x1bOD"
// URxvt modifier CSI ~ keys
diff --git a/packages/tui/internal/clipboard/clipboard_windows.go b/packages/tui/internal/clipboard/clipboard_windows.go
index bd042cda8..09fc14169 100644
--- a/packages/tui/internal/clipboard/clipboard_windows.go
+++ b/packages/tui/internal/clipboard/clipboard_windows.go
@@ -311,13 +311,13 @@ func read(t Format) (buf []byte, err error) {
format = cFmtUnicodeText
}
- // check if clipboard is avaliable for the requested format
+ // check if clipboard is available for the requested format
r, _, err := isClipboardFormatAvailable.Call(format)
if r == 0 {
return nil, errUnavailable
}
- // try again until open clipboard successed
+ // try again until open clipboard succeeds
for {
r, _, _ = openClipboard.Call()
if r == 0 {
diff --git a/packages/tui/internal/viewport/viewport.go b/packages/tui/internal/viewport/viewport.go
index 59fbe456e..10c875fab 100644
--- a/packages/tui/internal/viewport/viewport.go
+++ b/packages/tui/internal/viewport/viewport.go
@@ -270,7 +270,7 @@ func (m Model) GetContent() string {
return strings.Join(m.lines, "\n")
}
-// calculateLine taking soft wraping into account, returns the total viewable
+// calculateLine taking soft wrapping into account, returns the total viewable
// lines and the real-line index for the given yoffset.
func (m Model) calculateLine(yoffset int) (total, idx int) {
if !m.SoftWrap {