diff --git a/.circleci/config.yml b/.circleci/config.yml index 7ab611f..328335c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,17 +43,12 @@ workflows: when: and: - matches: - pattern: "^(?!pull/)[-_./\\w]+$" + pattern: "^(?!pull/)[-\\w]+$" value: << pipeline.git.branch >> - not: << pipeline.parameters.nightly_build >> - not: << pipeline.parameters.weekly_build >> jobs: - - hold: - type: approval - - apple/authenticate: - context: pr-approval - - mac_build_and_test: - requires: [ hold ] + - mac_build_and_test prb: when: diff --git a/Applications/LLMEval/ContentView.swift b/Applications/LLMEval/ContentView.swift index d31bb12..a1bd709 100644 --- a/Applications/LLMEval/ContentView.swift +++ b/Applications/LLMEval/ContentView.swift @@ -16,11 +16,21 @@ struct ContentView: View { VStack { // show the model output ScrollView(.vertical) { - if llm.running { - ProgressView() + ScrollViewReader { sp in + if llm.running { + ProgressView() + } + Text(llm.output) + .textSelection(.enabled) + + .onChange(of: llm.output) { _, _ in + sp.scrollTo("bottom") + } + + Spacer() + .frame(width: 1, height: 1) + .id("bottom") } - Text(llm.output) - .textSelection(.enabled) } HStack {