GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: enable type-aware no-floating-promises rule, fix all 177 violat… · pedropombeiro/opencode@80f1f1b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .oxlintrc.json
  • bun.lock
  • github
    • index.ts
  • package.json
  • packages
    • app/src
      • app.tsx
      • components
        • dialog-connect-provider.tsx
        • dialog-select-file.tsx
        • dialog-select-server.tsx
        • prompt-input.tsx
        • prompt-input
          • submit.ts
        • session-context-usage.tsx
        • session
          • session-sortable-terminal-tab.tsx
        • terminal.tsx
      • context
        • global-sync.tsx
        • layout.tsx
        • terminal.tsx
      • pages
        • layout.tsx
        • layout
          • sidebar-workspace.tsx
        • session.tsx
        • session
          • helpers.ts
    • console/app
      • script
        • generate-sitemap.ts
      • src
        • component
          • spotlight.tsx
        • routes
          • black/subscribe
            • [plan].tsx
          • download
            • index.tsx
          • index.tsx
          • temp.tsx
          • zen/util
            • dataDumper.ts
    • desktop/src
      • entry.tsx
      • index.tsx
      • loading.tsx
      • menu.ts
      • webview-zoom.ts
    • enterprise
      • test-debug.ts
    • opencode
      • script
        • postinstall.mjs
      • src
        • acp
          • agent.ts
        • cli/cmd/tui
          • app.tsx
          • component
            • dialog-session-list.tsx
            • dialog-session-rename.tsx
            • error-component.tsx
            • prompt
              • index.tsx
          • context
            • kv.tsx
            • local.tsx
            • sync.tsx
            • theme.tsx
          • feature-plugins/system
            • plugins.tsx
          • routes/session
            • dialog-message.tsx
            • index.tsx
            • permission.tsx
            • question.tsx
        • config
          • config.ts
        • control-plane
          • workspace.ts
        • file
          • watcher.ts
        • lsp
          • client.ts
          • index.ts
        • plugin
          • plugin.ts
        • provider
          • models.ts
        • server
          • instance
            • session.ts
          • proxy.ts
        • storage
          • db.ts
        • sync
          • sync-event.ts
        • util
          • defer.ts
          • log.ts
      • test
        • cli/tui
          • plugin-lifecycle.test.ts
        • mcp
          • headers.test.ts
          • lifecycle.test.ts
          • oauth-auto-connect.test.ts
          • oauth-browser.test.ts
        • memory
          • abort-leak-webfetch.ts
        • permission
          • next.test.ts
        • preload.ts
        • project
          • migrate-global.test.ts
          • project.test.ts
        • server
          • global-session-list.test.ts
          • project-init-git.test.ts
          • session-actions.test.ts
          • session-list.test.ts
          • session-messages.test.ts
          • session-select.test.ts
        • session
          • compaction.test.ts
          • llm.test.ts
          • messages-pagination.test.ts
          • processor-effect.test.ts
          • prompt-effect.test.ts
          • prompt.test.ts
          • revert-compact.test.ts
          • session.test.ts
          • snapshot-tool-race.test.ts
          • structured-output-integration.test.ts
        • skill
          • discovery.test.ts
    • sdk/js/src
      • gen/core
        • serverSentEvents.gen.ts
      • v2/gen/core
        • serverSentEvents.gen.ts
    • slack/src
      • index.ts
    • ui
      • src
        • components
          • basic-tool.tsx
          • list.tsx
          • message-part.tsx
          • text-field.tsx
          • text-reveal.tsx
          • thinking-heading.stories.tsx
          • tool-error-card.tsx
          • tool-status-title.tsx
        • pierre
          • worker.ts
      • vite.config.ts
  • script
    • duplicate-pr.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.oxlintrc.json‎

Copy file name to clipboardExpand all lines: .oxlintrc.json
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@
3030
// postMessage target origin not relevant for this codebase
3131
"unicorn/require-post-message-target-origin": "off",
3232
// Side-effectful constructors are intentional in some places
33-
"no-new": "off"
33+
"no-new": "off",
34+
35+
// Type-aware: catch unhandled promises
36+
"typescript/no-floating-promises": "warn"
37+
},
38+
"options": {
39+
"typeAware": true
3440
},
3541
"ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts"]
3642
}
Collapse file

‎bun.lock‎

Copy file name to clipboardExpand all lines: bun.lock
+15Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎github/index.ts‎

Copy file name to clipboardExpand all lines: github/index.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ async function subscribeSessionEvents() {
513513
const decoder = new TextDecoder()
514514

515515
let text = ""
516-
;(async () => {
516+
void (async () => {
517517
while (true) {
518518
try {
519519
const { done, value } = await reader.read()
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"glob": "13.0.5",
8888
"husky": "9.1.7",
8989
"oxlint": "1.60.0",
90+
"oxlint-tsgolint": "0.21.0",
9091
"prettier": "3.6.2",
9192
"semver": "^7.6.0",
9293
"sst": "3.18.10",
Collapse file

‎packages/app/src/app.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/app.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ function ConnectionGate(props: ParentProps<{ disableHealthCheck?: boolean }>) {
197197
fallback={
198198
<ConnectionError
199199
onRetry={() => {
200-
if (checkMode() === "background") healthCheckActions.refetch()
200+
if (checkMode() === "background") void healthCheckActions.refetch()
201201
}}
202202
onServerSelected={(key) => {
203203
setCheckMode("blocking")
204204
server.setActive(key)
205-
healthCheckActions.refetch()
205+
void healthCheckActions.refetch()
206206
}}
207207
/>
208208
}
Collapse file

‎packages/app/src/components/dialog-connect-provider.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/dialog-connect-provider.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export function DialogConnectProvider(props: { provider: string }) {
327327
if (loading()) return
328328
if (methods().length === 1) {
329329
auto = true
330-
selectMethod(0)
330+
void selectMethod(0)
331331
}
332332
})
333333

@@ -373,7 +373,7 @@ export function DialogConnectProvider(props: { provider: string }) {
373373
key={(m) => m?.label}
374374
onSelect={async (selected, index) => {
375375
if (!selected) return
376-
selectMethod(index)
376+
void selectMethod(index)
377377
}}
378378
>
379379
{(i) => (
Collapse file

‎packages/app/src/components/dialog-select-file.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/dialog-select-file.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ export function DialogSelectFile(props: { mode?: DialogSelectFileMode; onOpenFil
348348

349349
const open = (path: string) => {
350350
const value = file.tab(path)
351-
tabs().open(value)
352-
file.load(path)
351+
void tabs().open(value)
352+
void file.load(path)
353353
if (!view().reviewPanel.opened()) view().reviewPanel.open()
354354
layout.fileTree.setTab("all")
355355
props.onOpenFile?.(path)
Collapse file

‎packages/app/src/components/dialog-select-server.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/dialog-select-server.tsx
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export function DialogSelectServer() {
344344

345345
createEffect(() => {
346346
items()
347-
refreshHealth()
347+
void refreshHealth()
348348
const interval = setInterval(refreshHealth, 10_000)
349349
onCleanup(() => clearInterval(interval))
350350
})
@@ -498,7 +498,7 @@ export function DialogSelectServer() {
498498
async function handleRemove(url: ServerConnection.Key) {
499499
server.remove(url)
500500
if ((await platform.getDefaultServer?.()) === url) {
501-
platform.setDefaultServer?.(null)
501+
void platform.setDefaultServer?.(null)
502502
}
503503
}
504504

@@ -536,7 +536,7 @@ export function DialogSelectServer() {
536536
items={sortedItems}
537537
key={(x) => x.http.url}
538538
onSelect={(x) => {
539-
if (x) select(x)
539+
if (x) void select(x)
540540
}}
541541
divider={true}
542542
class="px-5 [&_[data-slot=list-search-wrapper]]:w-full [&_[data-slot=list-scroll]]h-[300px] [&_[data-slot=list-scroll]]:overflow-y-auto [&_[data-slot=list-items]]:bg-surface-base [&_[data-slot=list-items]]:rounded-md [&_[data-slot=list-item]]:min-h-14 [&_[data-slot=list-item]]:p-3 [&_[data-slot=list-item]]:!bg-transparent"
Collapse file

‎packages/app/src/components/prompt-input.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/prompt-input.tsx
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
212212
if (!view().reviewPanel.opened()) view().reviewPanel.open()
213213
layout.fileTree.setTab("all")
214214
const tab = files.tab(item.path)
215-
tabs().open(tab)
215+
void tabs().open(tab)
216216
tabs().setActive(tab)
217-
Promise.resolve(files.load(item.path)).finally(() => queueCommentFocus())
217+
void Promise.resolve(files.load(item.path)).finally(() => queueCommentFocus())
218218
}
219219

220220
const recent = createMemo(() => {
@@ -1139,7 +1139,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
11391139
}
11401140

11411141
if (working()) {
1142-
abort()
1142+
void abort()
11431143
event.preventDefault()
11441144
event.stopPropagation()
11451145
return
@@ -1205,7 +1205,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
12051205
return
12061206
}
12071207
if (working()) {
1208-
abort()
1208+
void abort()
12091209
event.preventDefault()
12101210
}
12111211
return
@@ -1245,7 +1245,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
12451245
) {
12461246
return
12471247
}
1248-
handleSubmit(event)
1248+
void handleSubmit(event)
12491249
}
12501250
}
12511251

Collapse file

‎packages/app/src/components/prompt-input/submit.ts‎

Copy file name to clipboardExpand all lines: packages/app/src/components/prompt-input/submit.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export function createPromptSubmit(input: PromptSubmitInput) {
295295
const mode = input.mode()
296296

297297
if (text.trim().length === 0 && images.length === 0 && input.commentCount() === 0) {
298-
if (input.working()) abort()
298+
if (input.working()) void abort()
299299
return
300300
}
301301

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.